chore: update build.yml
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
paths:
|
paths:
|
||||||
|
- '.github/workflows/docs.yml'
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -21,11 +22,12 @@ jobs:
|
|||||||
- run: yarn run docs:build
|
- run: yarn run docs:build
|
||||||
- run: mv ./docs/.vitepress/dist ./docs/.vitepress/canvas-editor-docs
|
- run: mv ./docs/.vitepress/dist ./docs/.vitepress/canvas-editor-docs
|
||||||
- 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: ./docs/.vitepress/canvas-editor-docs
|
source: docs/.vitepress/canvas-editor-docs
|
||||||
remote: ${{ secrets.DOCS_PATH }}
|
target: ${{ secrets.DOCS_PATH }}
|
||||||
host: ${{ secrets.HOST }}
|
host: ${{ secrets.HOST }}
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
password: ${{ secrets.PASSWORD }}
|
password: ${{ secrets.PASSWORD }}
|
||||||
rmRemote: true
|
overwrite: true
|
||||||
|
strip_components: 2
|
||||||
|
|||||||
Reference in New Issue
Block a user