You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The release workflow (.github/workflows/release.yml, job "Create GitHub release") is not safe with immutable releases, which this repository uses (see elixir-cloud-aai/cloud-registry#216 for the failure in cloud-registry v0.3.0).
On re-runs, the step finds an existing release and runs gh release upload "${TAG}" dist/* --clobber. Once an immutable release is published, that fails with HTTP 422: Cannot upload assets to an immutable release. It also exits with success without checking anything, and it never publishes a leftover draft. The normal path (gh release create "${TAG}" dist/* ...) works only because gh creates a draft, uploads the assets and then publishes it.
Expected:
Create the release explicitly as a draft, upload the distributions, and publish it (gh release edit --draft=false) as the last action.
On re-runs, finish an existing draft.
On re-runs with a published release, upload nothing. Check that all distributions are there (names, digests). If any are missing, fail with a clear error that explains the manual steps.
release-chart.yml creates no GitHub release (it pushes the chart to GHCR), so it is not affected.
Activity