Commit 50a669b
committed
release CI: make the publish step idempotent
gh release create fails if the release already exists, so re-running the
pipeline after force-moving a tag to a fixed commit would error at publish.
Detect an existing release and upload its assets with --clobber instead
(leaving hand-written notes intact); otherwise create it as before. Tag name
is passed via an env var and quoted, per workflow-injection guidance.1 parent 64dc453 commit 50a669b
1 file changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
518 | | - | |
| 518 | + | |
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
0 commit comments