From cd37fb5ffab2b18297516db6f92081294f94e697 Mon Sep 17 00:00:00 2001 From: Brian McGee Date: Thu, 5 Sep 2024 16:07:50 +0100 Subject: [PATCH] fix: github workflow for versions --- .github/workflows/gh-pages.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 65f88fd..7d7df94 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -38,4 +38,6 @@ jobs: - name: Deploy version if: startsWith(github.ref, 'refs/tags/v') run: | - nix develop --command bash -c "mike deploy -p -u ${{ github.ref_name }} latest" + # strip the leading v from the ref_name + # update the latest alias + nix develop --command bash -c "mike deploy -p -u ${${{ github.ref_name }}:1} latest"