Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,17 @@ jobs:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }} # gh infers the repo from this when no checkout is present
VERSION: ${{ steps.version.outputs.version }}
# A version with a prerelease label, such as 1.0.20-alpha, is released as a prerelease,
# which GitHub does not mark as the latest release.
run: |
prerelease=()
if [[ "$VERSION" == *-* ]]; then
prerelease=(--prerelease)
fi

gh release create "v$VERSION" \
--draft \
"${prerelease[@]}" \
--target "$GITHUB_SHA" \
--title "v$VERSION" \
--generate-notes \
Expand Down
Loading