From 82a2293c58d5fd745ee78ac1cb81dd5e92b41022 Mon Sep 17 00:00:00 2001 From: "joseph.marinier" Date: Fri, 17 Jun 2022 14:59:17 -0400 Subject: [PATCH] Avoid duplicating docs for patch versions - Instead, we now overwrite the minor version, as recommended by the authors of mike - Clean up some unnecessary steps --- .github/workflows/docs_cd.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs_cd.yml b/.github/workflows/docs_cd.yml index d264241c..06da96f9 100644 --- a/.github/workflows/docs_cd.yml +++ b/.github/workflows/docs_cd.yml @@ -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