Skip to content

chore: ci

chore: ci #4

Workflow file for this run

name: github pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# 如果配置 themeConfig.lastUpdated 为 false,则不需要添加该参数以加快检出速度
fetch-depth: 0
- name: Install dependencies
run: npm install
- name: Build with dumi
# 文档编译命令,如果是 react 模板需要修改为 npm run docs:build
run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ _GH_PAGES._gh_pages_1587 }}

Check failure on line 25 in .github/workflows/gh-pages.yml

View workflow run for this annotation

GitHub Actions / github pages

Invalid workflow file

The workflow is not valid. .github/workflows/gh-pages.yml (Line: 25, Col: 25): Unrecognized named-value: '_GH_PAGES'. Located at position 1 within expression: _GH_PAGES._gh_pages_1587
# 文档目录,如果是 react 模板需要修改为 docs-dist
publish_dir: ./docs-dist