aaa
This commit is contained in:
parent
08ea9ec963
commit
f50cb0b57e
1 changed files with 5 additions and 5 deletions
|
@ -56,19 +56,19 @@ jobs:
|
||||||
- name: stop + cleanup
|
- name: stop + cleanup
|
||||||
uses: https://github.com/appleboy/ssh-action@master
|
uses: https://github.com/appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: $DEPLOY_HOST
|
host: ${{ env.DEPLOY_HOST }}
|
||||||
username: $DEPLOY_USER
|
username: ${{ env.DEPLOY_USER }}
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
script: |
|
script: |
|
||||||
screen -X -S fgo-ta_com-public kill
|
screen -X -S fgo-ta_com-public kill
|
||||||
rm -r -f fgo-ta_com/public/*
|
rm -r -f fgo-ta_com/public/*
|
||||||
- name: copy using rsync
|
- name: copy using rsync
|
||||||
run: rsync -az --stats static-site/* $DEPLOY_USER@$DEPLOY_HOST:~/fgo-ta_com/public
|
run: rsync -az --stats static-site/* ${{ env.DEPLOY_USER }}@${{ env.DEPLOY_HOST }}:~/fgo-ta_com/public
|
||||||
- name: start
|
- name: start
|
||||||
uses: https://github.com/appleboy/ssh-action@master
|
uses: https://github.com/appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: $DEPLOY_HOST
|
host: ${{ env.DEPLOY_HOST }}
|
||||||
username: $DEPLOY_USER
|
username: ${{ env.DEPLOY_USER }}
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
script: |
|
script: |
|
||||||
PATH="$HOME/.local/bin:$PATH"
|
PATH="$HOME/.local/bin:$PATH"
|
||||||
|
|
Loading…
Reference in a new issue