Skip to content

Commit

Permalink
ci: build documentation on release
Browse files Browse the repository at this point in the history
  • Loading branch information
bdura committed Apr 19, 2024
1 parent 59d39ca commit 5f60aef
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,28 @@ jobs:

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

documentation:
name: Build documentation

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install poetry
run: |
pip install poetry
poetry install --only docs
- name: Set up Git
run: |
git config user.name ${{ github.actor }}
git config user.email ${{ github.actor }}@users.noreply.github.com
- name: Build documentation
run: |
git fetch origin gh-pages
poetry run mike deploy --push --update-aliases $GITHUB_REF_NAME latest
4 changes: 4 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ plugins:

hooks:
- docs/scripts/plugin.py

extra:
version:
provider: mike

0 comments on commit 5f60aef

Please sign in to comment.