From 27a29a3f8b6f519c223fe60954d1b8e313e439c4 Mon Sep 17 00:00:00 2001 From: geleeroyale Date: Wed, 7 Aug 2024 15:10:46 +0200 Subject: [PATCH] Create manual-ssh.yml --- .github/workflows/manual-ssh.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/manual-ssh.yml 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 }}