Skip to content

Commit

Permalink
ci: adds versioning to documentation publish action. (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtiesling authored Feb 7, 2024
1 parent b97c9ff commit 7097058
Show file tree
Hide file tree
Showing 4 changed files with 774 additions and 121 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Docs Deploy
on:
push:
branches:
- main
release:
types:
- published
permissions:
contents: write
jobs:
Expand Down Expand Up @@ -32,4 +32,6 @@ jobs:
- name: GH Pages deploy
run: |
cd docs
poetry run mkdocs gh-deploy --force
git pull
poetry run hatch version
poetry run mike deploy --push --update-aliases `poetry run hatch version` stable
3 changes: 3 additions & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ extra:
analytics:
provider: google
property: G-P32VD2EBF0
version:
provider: mike
default: stable
nav:
- About: index.md
- Installation: installation.md
Expand Down
Loading

0 comments on commit 7097058

Please sign in to comment.