Skip to content

Commit

Permalink
Avoid duplicating docs for patch versions
Browse files Browse the repository at this point in the history
- Instead, we now overwrite the minor version, as recommended by the authors of mike
- Clean up some unnecessary steps
  • Loading branch information
JosephMarinier committed Jun 22, 2022
1 parent 7f8615c commit 82a2293
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docs_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
run: |
pip install mkdocs-material mike
cd docs && mkdocs build && mike set-default --push main && mike deploy --push --force $VERSION
cd docs && mike deploy --push ${VERSION%.*}
# ${VERSION%.*} removes the patch version number
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}
- name: "on branch"
if: ${{ startsWith(github.ref, 'refs/tags/') == false }}
run: |
pip install mkdocs-material mike
cd docs && mkdocs build && mike set-default --push main && mike deploy --push --force main
cd docs && mike deploy --push main

0 comments on commit 82a2293

Please sign in to comment.