Repository navigation
Commit 5922241
build: attach release assets before publishing the release
The openedx org now has immutable releases enabled, which freezes a
release's assets at the moment the release is published. Our flow
created and published the release with python-semantic-release and then
uploaded the distributions in a separate step, so those uploads now fail
with "HTTP 422: Cannot upload assets to an immutable release".
Instead, let python-semantic-release tag, push and build
(vcs_release: false) and create the release ourselves with
`gh release create`, which creates the release as a draft, uploads the
assets, and only then publishes it. Its generated release notes are
reused via the release_notes output, so the release body is unchanged.
This has been broken since v3.6.1 but stayed silent until now, because
python-semantic-release swallowed asset upload errors before v10.6.0.
v3.6.1, v3.7.0 and v3.7.1 all published with no release assets, and
they are immutable now, so they cannot be backfilled.
Immutable releases: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/immutable-releases
Silent upload failures: python-semantic-release/python-semantic-release#1395
Failing run: https://github.com/openedx/sample-plugin/actions/runs/32858608339/job/97836889093
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>1 parent 43d749c commit 5922241
1 file changed
Lines changed: 26 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
51 | 59 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
56 | 74 | | |
57 | 75 | | |
58 | 76 | | |
| |||
0 commit comments