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.yaml, step "Create release") has the same problem as cloud-registry's (elixir-cloud-aai/cloud-registry#216). This must be fixed before proTES's first release.
On re-runs, the step finds an existing release and runs gh release upload "${TAG}" dist/* --clobber, then gh release edit. Once an immutable release is published, uploads to it fail (HTTP 422: Cannot upload assets to an immutable release). That is what happened to cloud-registry v0.3.0 after its release was published by hand. The normal path (gh release create "${TAG}" dist/* ...) only works because gh creates the release as a draft and publishes it after the upload. There is also no way to finish a leftover draft.
Expected:
Create the release explicitly as a draft, upload the assets, set the notes, and publish it (gh release edit --draft=false, with the pre-release and latest flags) as the last action.
On re-runs, finish an existing draft.
On re-runs with a published release, upload nothing. Check that all expected assets are there (names, digests). Edit only notes, title and flags. If assets are missing, fail with a clear error that explains the manual steps.
The previous-release lookup (gh release list --exclude-drafts) keeps ignoring drafts.
Activity