From 9532e6464436856fb1ef582093945be7fa1133b4 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Wed, 30 Oct 2024 14:47:07 +0100 Subject: [PATCH] ci: the latest not-released docs will use "dev" as a version from now on --- .github/workflows/documentation.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 3df4ec99..21bec4cb 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -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