Skip to content

Commit ae928e0

Browse files
fix(ci): publish release as draft until PHAR asset is attached
GitHub's immutable-releases feature freezes a release, including asset uploads, the instant it publishes. Create the release as a draft, upload the PHAR, then flip it live. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XEDhH4HqdqtKnKqYA4tu75
1 parent cc6b194 commit ae928e0

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,13 @@ jobs:
9797
id: sha
9898
run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
9999

100-
- name: Create tag and release at the release commit
100+
- name: Create draft tag and release at the release commit
101101
run: |
102102
gh release create ${{ steps.v.outputs.tag }} \
103103
--title "${{ steps.v.outputs.tag }}" \
104104
--notes-file RELEASE_NOTES.md \
105105
--target ${{ steps.sha.outputs.sha }} \
106+
--draft \
106107
--latest
107108
env:
108109
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -113,3 +114,8 @@ jobs:
113114
gh release upload ${{ steps.v.outputs.tag }} bb.phar --clobber
114115
env:
115116
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
117+
118+
- name: Publish the release
119+
run: gh release edit ${{ steps.v.outputs.tag }} --draft=false
120+
env:
121+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)