From f246c479e9ca09357234cb4a67a340088a64f876 Mon Sep 17 00:00:00 2001 From: Brian McGee Date: Thu, 5 Sep 2024 16:22:41 +0100 Subject: [PATCH] feat: only use major/minor version in docs releases --- .github/workflows/gh-pages.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index d2704c7..8e9677a 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -39,6 +39,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/v') run: | REF_NAME=${{ github.ref_name }} + MAJOR_MINOR=${REF_NAME%.*} # strip the leading v from the ref_name # update the latest alias - nix develop --command bash -c "mike deploy -p -u ${REF_NAME:1} latest" + nix develop --command bash -c "mike deploy -p -u ${MAJOR_MINOR:1} latest"