@@ -15,28 +15,28 @@ jobs:
1515 runs-on : ubuntu-latest
1616
1717 steps :
18- - uses : actions/checkout@v2
19- - name : Use Node.js ${{ matrix.node-version }}
20- uses : actions/setup-node@v1
21- with :
22- node-version : ${{ matrix.node-version }}
23- - run : npm i yarn -g
24- - run : yarn
25- - run : yarn run build
26- - run : mv dist canvas-editor
27- - name : Copy folder content recursively to remote
28- uses : garygrossgarten/github -action-scp@release
29- with :
30- local : canvas-editor
31- remote : ${{ secrets.PATH }}
32- host : ${{ secrets.HOST }}
33- username : ${{ secrets.USERNAME }}
34- password : ${{ secrets.PASSWORD }}
35- rmRemote : true
36- - name : Executing remote ssh commands
37- 38- with :
39- host : ${{ secrets.HOST }}
40- username : ${{ secrets.USERNAME }}
41- password : ${{ secrets.PASSWORD }}
42- script : sed -i 's/<\/body>/${{ secrets.SCRIPT }}<\/body>/g' ${{ secrets.PATH }}/index.html
18+ - uses : actions/checkout@v2
19+ - name : Use Node.js ${{ matrix.node-version }}
20+ uses : actions/setup-node@v1
21+ with :
22+ node-version : ${{ matrix.node-version }}
23+ - run : npm i yarn -g
24+ - run : yarn
25+ - run : yarn run build
26+ - run : mv dist canvas-editor
27+ - name : Copy folder content recursively to remote
28+ uses : appleboy/scp -action@v0.1.7
29+ with :
30+ source : canvas-editor
31+ target : ${{ secrets.PATH }}
32+ host : ${{ secrets.HOST }}
33+ username : ${{ secrets.USERNAME }}
34+ password : ${{ secrets.PASSWORD }}
35+ overwrite : true
36+ - name : Executing remote ssh commands
37+ 38+ with :
39+ host : ${{ secrets.HOST }}
40+ username : ${{ secrets.USERNAME }}
41+ password : ${{ secrets.PASSWORD }}
42+ script : sed -i 's/<\/body>/${{ secrets.SCRIPT }}<\/body>/g' ${{ secrets.PATH }}/canvas-editor /index.html
0 commit comments