mirror of
https://gh.wpcy.net/https://github.com/serpwings/static-wordpress.git
synced 2026-05-12 13:11:30 +08:00
18 lines
532 B
YAML
18 lines
532 B
YAML
name: Documentation Generator
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-python@v2
|
|
- run: pip install --upgrade pip && pip install mkdocs mkdocs-gen-files mkdocstrings[python] pymdown-extensions
|
|
- run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
|
|
- name: Publish docs
|
|
run: mkdocs gh-deploy
|