Skip to content

feat: automate artifact creation on cli native release#2111

Merged
samrose merged 1 commit intodevelopfrom
cli-tag-artifacts
May 7, 2026
Merged

feat: automate artifact creation on cli native release#2111
samrose merged 1 commit intodevelopfrom
cli-tag-artifacts

Conversation

@samrose
Copy link
Copy Markdown
Collaborator

@samrose samrose commented Apr 13, 2026

Summary

  • Fix CLI release artifacts not being created when -cli tags are pushed automatically by the AMI release workflow
  • The root cause is that GitHub Actions does not allow workflows triggered by the default GITHUB_TOKEN to trigger other workflows via tag push events
  • Add explicit gh workflow run cli-release.yml trigger in ami-release-nix.yml after creating the -cli tag, following the same pattern used for
    publish-nix-pgupgrade-scripts.yml
  • Update cli-release.yml to support workflow_dispatch for the release job, with explicit tag_name resolution so artifacts attach to the correct -cli tag
  • CLI tagging and release only happen on branch merges, not on workflow_dispatch of the AMI workflow (existing guard preserved)
  • Older -cli tags can be backfilled by manually running cli-release.yml via workflow_dispatch

@samrose samrose marked this pull request as ready for review April 13, 2026 16:50
@samrose samrose requested review from a team as code owners April 13, 2026 16:50
@samrose samrose force-pushed the cli-tag-artifacts branch from f74a73a to 2dd153b Compare May 7, 2026 12:21
@samrose samrose enabled auto-merge May 7, 2026 12:21
@samrose samrose added this pull request to the merge queue May 7, 2026
Merged via the queue into develop with commit b3dbd3d May 7, 2026
637 checks passed
@samrose samrose deleted the cli-tag-artifacts branch May 7, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants