Skip to content

Merge pull request #6 from wiemanboy/feature/auto-deploy #4

Merge pull request #6 from wiemanboy/feature/auto-deploy

Merge pull request #6 from wiemanboy/feature/auto-deploy #4

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
- release/**
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy
run: |
echo "${{ secrets.PRIVATE_KEY }}" > private_key && chmod 600 private_key
rsync -av --exclude='data/' --exclude='.*' -e "ssh -o StrictHostKeyChecking=no -i private_key ./ ${{ secrets.USERNAME }}@${{ secrets.HOST }}:~/server
ssh -o StrictHostKeyChecking=no -i private_key ${{secrets.USERNAME}}@${{secrets.HOST}} '
cd ~/server
make deploy
'