diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..a4583ab --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,22 @@ +name: Deploy + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Deploy to VPS + uses: will-lynas/go-vps-deploy@main + with: + host: ${{ secrets.VPS_HOST }} + username: ${{ secrets.VPS_USER }} + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + branch-name: master