Skip to content

feat: use deploy key #5

feat: use deploy key

feat: use deploy key #5

Workflow file for this run

name: github pages
on:
push:
branches:
- master # default branch
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
run: npm run docs:build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GH_TOKEN }}
publish_dir: ./docs-dist