Commit 0d54c7a
Remove explicit tag push; rely on gh release create draft atomicity
The explicit git push step published the tag before any release or assets
existed, creating a window where the tag was public with nothing attached.
If gh release create then failed, the tag was permanently stranded.
New sequence:
- gh release create --draft --target <sha>: uploads all assets, tag not
yet public (GitHub defers the ref until the draft is published)
- gh release edit --draft=false: tag and release become public together
Also adds:
- set -euo pipefail + shopt -s failglob so an empty dist/ or any command
failure exits loudly before touching GitHub
- Cleanup step (if: failure()) that deletes a leftover draft so the next
run is not blocked; --cleanup-tag is best-effort (|| true) since the
org immutable-tag policy may prevent tag deletion, but the release
deletion alone is sufficient to unblock a retry
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent 21c8990 commit 0d54c7a
1 file changed
Lines changed: 22 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | 144 | | |
148 | 145 | | |
149 | 146 | | |
150 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
151 | 160 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 161 | + | |
| 162 | + | |
158 | 163 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
| 164 | + | |
| 165 | + | |
164 | 166 | | |
165 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
166 | 174 | | |
167 | 175 | | |
168 | 176 | | |
| |||
0 commit comments