|
|
|
@ -25,18 +25,18 @@ jobs:
|
|
|
|
- run: yarn run build
|
|
|
|
- run: yarn run build
|
|
|
|
- run: mv dist canvas-editor
|
|
|
|
- run: mv dist canvas-editor
|
|
|
|
- name: Copy folder content recursively to remote
|
|
|
|
- name: Copy folder content recursively to remote
|
|
|
|
uses: garygrossgarten/github-action-scp@release
|
|
|
|
uses: appleboy/scp-action@v0.1.7
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
local: canvas-editor
|
|
|
|
source: canvas-editor
|
|
|
|
remote: ${{ secrets.PATH }}
|
|
|
|
target: ${{ secrets.PATH }}
|
|
|
|
host: ${{ secrets.HOST }}
|
|
|
|
host: ${{ secrets.HOST }}
|
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
|
password: ${{ secrets.PASSWORD }}
|
|
|
|
password: ${{ secrets.PASSWORD }}
|
|
|
|
rmRemote: true
|
|
|
|
overwrite: true
|
|
|
|
- name: Executing remote ssh commands
|
|
|
|
- name: Executing remote ssh commands
|
|
|
|
uses: appleboy/ssh-action@v1.0.3
|
|
|
|
uses: appleboy/ssh-action@v1.0.3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
host: ${{ secrets.HOST }}
|
|
|
|
host: ${{ secrets.HOST }}
|
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
|
password: ${{ secrets.PASSWORD }}
|
|
|
|
password: ${{ secrets.PASSWORD }}
|
|
|
|
script: sed -i 's/<\/body>/${{ secrets.SCRIPT }}<\/body>/g' ${{ secrets.PATH }}/index.html
|
|
|
|
script: sed -i 's/<\/body>/${{ secrets.SCRIPT }}<\/body>/g' ${{ secrets.PATH }}/canvas-editor/index.html
|
|
|
|
|