File tree Expand file tree Collapse file tree 1 file changed +6
-24
lines changed
Expand file tree Collapse file tree 1 file changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -24,37 +24,19 @@ jobs:
2424 - name : Build project
2525 run : npm run build
2626
27- - name : Copy package.json and package-lock.json
28- uses : appleboy/scp-action@v1.0.0
29- with :
30- host : ${{ secrets.HOST }}
31- username : ${{ secrets.USER }}
32- key : ${{ secrets.KEY }}
33- port : ${{ secrets.PORT }}
34- source : " package*.json"
35- target : " ${{ secrets.DEPLOY_PATH }}/"
36-
3727 - name : Copy built files
3828 uses : appleboy/scp-action@v1.0.0
3929 with :
4030 host : ${{ secrets.HOST }}
4131 username : ${{ secrets.USER }}
4232 key : ${{ secrets.KEY }}
4333 port : ${{ secrets.PORT }}
44- source : " ./dist/*"
45- target : " ${{ secrets.DEPLOY_PATH }}/dist/"
46- strip_components : 1
47-
48- - name : Install dependencies on server
49- uses : appleboy/ssh-action@v1.2.2
50- with :
51- host : ${{ secrets.HOST }}
52- username : ${{ secrets.USER }}
53- key : ${{ secrets.KEY }}
54- port : ${{ secrets.PORT }}
55- script : |
56- cd ${{ secrets.DEPLOY_PATH }}
57- npm ci --production
34+ source : |
35+ dist
36+ node_modules
37+ package.json
38+ target : ${{ secrets.DEPLOY_PATH }}
39+ strip_components : 0
5840
5941 - name : Restart ALTERSHAPER
6042 run : |
You can’t perform that action at this time.
0 commit comments