Skip to content

fix: publish releases after uploading assets #451

Closed

Description

@uniqueg

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

  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