Skip to content

Commit 27a29a3

Browse files
authored
Create manual-ssh.yml
1 parent d37d90d commit 27a29a3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/manual-ssh.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: auto-deploy-main
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
jobs:
9+
deploy:
10+
- name: SSH and Redeploy
11+
uses: easingthemes/ssh-deploy@main
12+
env:
13+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATEKEY }}
14+
REMOTE_HOST: ${{ secrets.HOST }}
15+
REMOTE_USER: ${{ secrets.USER }}
16+
TARGET: "/path/to/your/directory"
17+
with:
18+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATEKEY }}

0 commit comments

Comments
 (0)