Skip to content

Commit 95cb6cf

Browse files
authored
Update release-zips.yml
1 parent 1755498 commit 95cb6cf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release-zips.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,13 @@ jobs:
8282
run: |
8383
# Check if the latest release exists
8484
if gh release view latest; then
85-
# Update the existing release instead of deleting
85+
# Check if the release is a draft and publish it
86+
if gh release view latest --json draft --jq '.draft'; then
87+
echo "Publishing the draft release..."
88+
gh release edit latest --draft=false
89+
fi
90+
91+
# Update the existing release with new details
8692
gh release edit latest \
8793
--title "Latest Release" \
8894
--notes "This is always the latest release. For permanent links, use the dated releases." \

0 commit comments

Comments
 (0)