Skip to content

Commit

Permalink
feat:add docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Hufe921 committed Dec 31, 2022
1 parent db52ab8 commit 7fd0792
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: docs

on:
push:
branches: [main]
paths:
- 'docs/**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i yarn -g
- run: yarn
- run: yarn run docs:build
- run: mv ./docs/.vitepress/dist canvas-editor-docs
- name: Copy folder content recursively to remote
uses: garygrossgarten/github-action-scp@release
with:
local: ./docs/.vitepress/canvas-editor-docs
remote: ${{ secrets.DOCS_PATH }}
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
rmRemote: true

0 comments on commit 7fd0792

Please sign in to comment.