feat(editor,data-source): 数据源支持内置"设置数据"方法 #949
This file contains hidden or 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: pages | |
| on: | |
| push: | |
| branches: [dev] | |
| workflow_dispatch: | |
| jobs: | |
| pages: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| ref: dev | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Set node version to 22 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| - run: pnpm bootstrap | |
| - name: Build VuePress site | |
| run: npm run docs:build | |
| - name: Build Playground site | |
| run: npm run build:playground | |
| - name: clean dist | |
| run: rm -rf dist | |
| - name: mkdir dist | |
| run: mkdir dist && mkdir dist/docs && mkdir dist/playground | |
| - name: move to dist | |
| run: mv docs/.vitepress/dist/* dist/docs && mv playground/dist/* dist/playground | |
| - name: Bypass Jekyll on GitHub Pages | |
| run: touch dist/.nojekyll | |
| - name: Deploy to GitHub Pages | |
| uses: crazy-max/ghaction-github-pages@v2 | |
| with: | |
| target_branch: gh-pages | |
| build_dir: dist | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |