Skip to content

Commit

Permalink
feat: update ssh command to sync build folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Dec 19, 2024
1 parent 5d86457 commit 75d3547
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@ jobs:
key: ${{ secrets.SSH_PRIVATE_KEY_WEB_2 }}
port: ${{ secrets.REMOTE_PORT_WEB_2 }}
script: |
ssh ${{ vars.NGINX_SERVER_NAME }}
rsync -avz --delete ${{ vars.DOCS_PATH_WEB_2 }}/build/ ${{ vars.NGINX_SERVER_DOCS_PATH }}
exit
ssh ${{ vars.NGINX_SERVER_NAME }} "mkdir -p ${{ vars.NGINX_SERVER_DOCS_PATH }}"
rsync -avz --delete ${{ vars.DOCS_PATH_WEB_2 }}/build/ ${{ vars.NGINX_SERVER_NAME }}:${{ vars.NGINX_SERVER_DOCS_PATH }}

0 comments on commit 75d3547

Please sign in to comment.