Skip to content

Commit

Permalink
release: maybe fix GH not seeing the tag (#110)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Cragun <me@ryan.ec>
  • Loading branch information
ryancragun committed Sep 19, 2023
1 parent a1424c1 commit ccbb7ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@ jobs:
# pre-release tag as `v<version>-pre+<first 5 characters of SHA>`.
- name: Create release
run: |
TAG=v${{ env.VERSION }}
export TAG=v${{ env.VERSION }}
PRERELEASE=""
if [ ${{ env.PRE_RELEASE }} = true ]; then
PRERELEASE="--prerelease"
TAG=v${{ env.VERSION }}-pre+$( echo ${{ env.SHA }} | head -c 5 )
fi
export TAG=$TAG
export PRERELEASE=$PRERELEASE
gh release create "$TAG" --target ${{ env.SHA }} --generate-notes "$PRERELEASE" ./.bob/artifacts/*.zip
# If not a pre-release, generate an updated Homebrew formula definition file
Expand Down

0 comments on commit ccbb7ec

Please sign in to comment.