added ssh deploy
This commit is contained in:
parent
ac637ac950
commit
628bc3b2d3
1 changed files with 19 additions and 1 deletions
|
@ -18,3 +18,21 @@ jobs:
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: hugo --minify
|
run: hugo --minify
|
||||||
|
|
||||||
|
- name: Deploy to Staging server
|
||||||
|
uses: easingthemes/ssh-deploy@main
|
||||||
|
with:
|
||||||
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
ARGS: "-rlgoDzvc -i"
|
||||||
|
SOURCE: "public/"
|
||||||
|
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
||||||
|
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
||||||
|
TARGET: ${{ secrets.REMOTE_TARGET }}
|
||||||
|
EXCLUDE: "/dist/, /node_modules/"
|
||||||
|
SCRIPT_BEFORE: |
|
||||||
|
whoami
|
||||||
|
ls -al
|
||||||
|
SCRIPT_AFTER: |
|
||||||
|
whoami
|
||||||
|
ls -al
|
||||||
|
echo $RSYNC_STDOUT
|
Loading…
Reference in a new issue