docs/.github/workflows/publish.yml

28 lines
741 B
YAML
Raw Normal View History

2023-06-09 19:50:56 +00:00
name: Build and publish
on:
push:
branches:
2023-06-09 19:50:56 +00:00
- master
jobs:
publishing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
2023-06-10 07:52:58 +00:00
pip install mkdocs markdown-callouts mkdocs-autorefs mkdocs-include-dir-to-nav mkdocs-material pymdown-extensions
- name: Build
run: mkdocs build
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
publish_branch: site