File tree Expand file tree Collapse file tree 1 file changed +2
-25
lines changed Expand file tree Collapse file tree 1 file changed +2
-25
lines changed Original file line number Diff line number Diff line change 1111 DEPLOY_PATH : /www/otk-help.martinmeer.com
1212
1313jobs :
14- build :
14+ deploy :
1515 runs-on : ubuntu-latest
1616 steps :
1717 - name : Checkout code
1818 uses : actions/checkout@v4
1919
20- - name : Install dependencies
21- run : |
22- npm install
23-
24- - name : Build project
25- run : |
26- npm run build
27-
28- - name : Archive production artifacts
29- uses : actions/upload-artifact@v4
30- with :
31- name : dist
32- path : ./dist
33-
34- deploy :
35- needs : build
36- runs-on : ubuntu-latest
37- steps :
38- - name : Download artifacts
39- uses : actions/download-artifact@v4
40- with :
41- name : dist
42-
4320 - name : Install sshpass
4421 run : sudo apt-get update && sudo apt-get install -y sshpass
4522
4623 - name : Copy files to server
4724 env :
4825 SSH_PASSWORD : ${{ secrets.SSH_PASSWORD_REGRU }}
4926 run : |
50- sshpass -p $SSH_PASSWORD scp -r dist /* $USERNAME@$SERVER_HOST:$DEPLOY_PATH
27+ sshpass -p $SSH_PASSWORD scp -r . /* $USERNAME@$SERVER_HOST:$DEPLOY_PATH
You can’t perform that action at this time.
0 commit comments