Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
feat: only use major/minor version in docs releases
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmcgee committed Sep 5, 2024
1 parent 88cd7a3 commit f246c47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit f246c47

Please sign in to comment.