Skip to content

Commit 21c8990

Browse files
Create release as draft first, publish only after all artifacts are uploaded
gh release create without --draft publishes the release immediately via the API before artifact uploads complete, leaving a window where users see an empty release. Using --draft ensures all .tar.gz, .zip, and checksums files are fully uploaded before gh release edit flips it to published. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent 6d50ec0 commit 21c8990

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,15 @@ jobs:
152152
gh release create "${{ inputs.tag }}" dist/*.tar.gz dist/*.zip dist/*checksums* \
153153
--title "Checkmarx One CLI ${{ inputs.tag }}" \
154154
--generate-notes \
155-
--prerelease
155+
--prerelease \
156+
--draft
157+
gh release edit "${{ inputs.tag }}" --draft=false
156158
else
157159
gh release create "${{ inputs.tag }}" dist/*.tar.gz dist/*.zip dist/*checksums* \
158160
--title "Checkmarx One CLI ${{ inputs.tag }}" \
159161
--generate-notes \
160-
--latest
162+
--draft
163+
gh release edit "${{ inputs.tag }}" --draft=false --latest
161164
fi
162165
163166
notify:

0 commit comments

Comments
 (0)