Skip to content

fix: publish releases after uploading assets #280

Closed

Description

@uniqueg

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

  1. added
    priority: high
    status: in progress
    type: bug
    workload: hours
    on Oct 24, 2026
  2. removed
    status: in progress
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: hightype: bugworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions