Skip to content

style: 删除无用的 type: ignore (#157) #336

style: 删除无用的 type: ignore (#157)

style: 删除无用的 type: ignore (#157) #336

Workflow file for this run

name: Docs Web Site Deploy
on:
push:
branches:
- master
paths-ignore:
- 'examples/**'
pull_request:
paths-ignore:
- 'examples/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: ./.github/actions/setup-python
- name: Build API Doc
run: uv run sophia-doc alicebot -o docs/dev-api --anchor-extend --ignore-data --overwrite --exclude-module-name --init-file-name index.md
shell: bash
env:
ALICEBOT_DEV: '1'
- name: Setup Node
uses: ./.github/actions/setup-node
- name: Build VitePress site
run: pnpm run docs:build
- uses: actions/upload-pages-artifact@v3
if: github.event_name != 'pull_request'
with:
path: docs/.vitepress/dist
deploy:
needs: build
if: github.event_name != 'pull_request'
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4