Skip to content

Commit

Permalink
Remove post identifier when determine deploy directory (#467)
Browse files Browse the repository at this point in the history
# References and relevant issues

same as [napari/napari#7125](napari/napari#7125)

# Description

With this PR, merging PRs tagged with a `post` release will get the docs
deployed to the major version of that release e.g. merging a PR for
`0.5.0.post1` will deploy the docs to `0.5.0`

---------

Co-authored-by: Juan Nunez-Iglesias <[email protected]>
  • Loading branch information
Czaki and jni authored Aug 1, 2024
1 parent aa5ffbe commit bfd57ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ jobs:
VER="${TAG/a*/}" # remove alpha identifier
VER="${VER/b*/}" # remove beta identifier
VER="${VER/rc*/}" # remove rc identifier
VER="${VER/post*/}" # remove post identifier
if [[ "$REF" == "refs/tags/v"* ]]; then
echo "branch_name=$VER" >> "$GITHUB_ENV"
Expand Down

0 comments on commit bfd57ff

Please sign in to comment.