fix: api interface (#36) #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: VEditor GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
package-and-deploy: | |
name: Docs & demo to GitHub Pages | |
runs-on: [self-hosted, nebula-fast] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build:all && npm run doc | |
- name: Delete node_modules | |
run: | | |
rm -rf node_modules && rm -rf demo && rm -rf src | |
rm .gitignore | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./ | |
enable_jekyll: true |