From bfd57ff774279e6ce2ee3b5078631e1b43271daf Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Fri, 2 Aug 2024 01:55:50 +0200 Subject: [PATCH] Remove `post` identifier when determine deploy directory (#467) # References and relevant issues same as [napari/napari#7125](https://github.com/napari/napari/pull/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 --- .github/workflows/build_and_deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 881bb1c6..690cb8a7 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -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"