File tree Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,28 @@ jobs:
12
12
- name : Deploy to Remote Host
13
13
uses : appleboy/ssh-action@master
14
14
with :
15
- host : ${{ secrets.REMOTE_HOST }}
16
- username : ${{ secrets.REMOTE_USERNAME }}
17
- password : ${{ secrets.REMOTE_PASS }}
18
- key : ${{ secrets.SSH_PRIVATE_KEY }}
19
- port : ${{ secrets.REMOTE_PORT }}
15
+ host : ${{ secrets.REMOTE_HOST_WEB_2 }}
16
+ username : ${{ secrets.REMOTE_USERNAME_WEB_2 }}
17
+ password : ${{ secrets.REMOTE_PASS_WEB_2 }}
18
+ key : ${{ secrets.SSH_PRIVATE_KEY_WEB_2 }}
19
+ port : ${{ secrets.REMOTE_PORT_WEB_2 }}
20
20
script : |
21
+ source "$HOME/.nvm/nvm.sh"
22
+ nvm use ${{ vars.GLOBAL_NVM_USE_VERSION }}
21
23
cd ${{ secrets.DOCS_RUNNER_PATH }}
22
24
${{ secrets.DOCS_RUNNER_COMMAND }}
25
+
26
+ sync-build :
27
+ runs-on : self-hosted
28
+ needs : deploy
29
+ steps :
30
+ - name : Sync build
31
+ uses : appleboy/ssh-action@master
32
+ with :
33
+ host : ${{ secrets.REMOTE_HOST_WEB_2 }}
34
+ username : ${{ secrets.REMOTE_USERNAME_WEB_2 }}
35
+ password : ${{ secrets.REMOTE_PASS_WEB_2 }}
36
+ key : ${{ secrets.SSH_PRIVATE_KEY_WEB_2 }}
37
+ port : ${{ secrets.REMOTE_PORT_WEB_2 }}
38
+ script : |
39
+ rsync -avz --delete ${{ vars.DOCS_PATH_WEB_2 }}/build/ ${{ vars.NGINX_SERVER_NAME }}:${{ vars.NGINX_SERVER_SYNC_PATH }}/docs/
You can’t perform that action at this time.
0 commit comments