diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..61ceeca --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,18 @@ +name: Deploy to Prod +on: + push: + branches: + - master +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Deploy To Server + uses: appleboy/ssh-action@v1.1.0 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.SSHKEY }} + script: "cd /home/ubuntu/devops && ./deploy.sh"