diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 23ff3e0b..d0838b42 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -77,6 +77,11 @@ jobs: wheel_docker.tar.gz source.tar.gz tag_name: ${{ env.VERSION_NUMBER }} + # without this, the GitHub API creates a brand-new tag against the + # repository's default branch (main) regardless of which branch this + # workflow actually ran on - a maintenance/beta build's tag would + # silently point at main instead of its own branch. + target_commitish: ${{ github.sha }} name: "${{ env.TITLE_PREFIX }} ${{ env.VERSION_NUMBER }}" body: "release for ${{ github.ref_name }} @ ${{ github.sha }} (${{ env.VERSION_NUMBER }})" # only the main line ever takes the "Latest" badge and the