mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 19:34:29 +02:00
ci: the latest not-released docs will use "dev" as a version from now on
This commit is contained in:
7
.github/workflows/documentation.yml
vendored
7
.github/workflows/documentation.yml
vendored
@@ -76,5 +76,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pip install conan mkdocs-material mkdocs-rss-plugin mkdocs-material[imaging] mkdocs-exclude mike
|
pip install conan mkdocs-material mkdocs-rss-plugin mkdocs-material[imaging] mkdocs-exclude mike
|
||||||
- name: Building docs
|
- name: Building docs
|
||||||
|
if: startsWith(github.event.ref, 'refs/tags/v')
|
||||||
run: |
|
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
|
||||||
|
Reference in New Issue
Block a user