Skip to content

Commit

Permalink
ci: the latest not-released docs will use "dev" as a version from now on
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Oct 30, 2024
1 parent 641ea85 commit 9532e64
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,10 @@ jobs:
run: |
pip install conan mkdocs-material mkdocs-rss-plugin mkdocs-material[imaging] mkdocs-exclude mike
- name: Building docs
if: startsWith(github.event.ref, 'refs/tags/v')
run: |
mike deploy --push --update-aliases `conan inspect . | sed -n -r 's/version: ([0-9]+.[0-9]+).[0-9]+/\1/p'` latest
mike deploy --push --update-aliases `conan inspect . | sed -n -r 's/version: ([0-9]+.[0-9]+).[0-9]+/\1/p'`
- name: Building docs
if: ${{!startsWith(github.event.ref, 'refs/tags/v')}}
run: |
mike deploy --push --update-aliases dev latest

0 comments on commit 9532e64

Please sign in to comment.