Merge branch 'master' of https://github.com/CMHopeSunshine/cherry-orm #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |