Skip to content

Merge branch 'master' of https://github.com/CMHopeSunshine/cherry-orm #2

Merge branch 'master' of https://github.com/CMHopeSunshine/cherry-orm

Merge branch 'master' of https://github.com/CMHopeSunshine/cherry-orm #2

Workflow file for this run

name: Build Docs
on:
workflow_dispatch:
push:
branches: [master]
paths:
- "docs/**"
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v3
- name: Setup Python environment
uses: ./.github/actions/setup-python
- name: Build site zh
run: poetry run mkdocs build -f docs/zh/mkdocs.yml -d ../site/
- name: Build site en
run: poetry run mkdocs build -f docs/en/mkdocs.yml -d ../site/en
- name: Deploy site to Github Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/site
publish_branch: docs-gh-pages