diff --git a/.github/workflows/manual-ssh.yml b/.github/workflows/manual-ssh.yml new file mode 100644 index 0000000..06a456e --- /dev/null +++ b/.github/workflows/manual-ssh.yml @@ -0,0 +1,18 @@ +name: auto-deploy-main +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + deploy: + - name: SSH and Redeploy + uses: easingthemes/ssh-deploy@main + env: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATEKEY }} + REMOTE_HOST: ${{ secrets.HOST }} + REMOTE_USER: ${{ secrets.USER }} + TARGET: "/path/to/your/directory" + with: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATEKEY }}