diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..b59dfff --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,21 @@ +name: Continue Deployment + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + deploy: + name: SSH using key + runs-on: ubuntu-latest + steps: + - name: executing remote ssh commands using ssh key + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.PK_VM }} + port: ${{ secrets.SSH_PORT }} + script: whoami