Repository navigation
ci: create the GitHub release in the workflow - #140
Conversation
Add the job publish ("Publish release") at the end of the release
workflow: once the image is published, it creates the GitHub release
of the tag with the shared action publish-release of
elixir-cloud-aai/.github: the curated notes of docs/releases/, then
GitHub's generated notes, the Full Changelog line last; a pre-release
below 1.0.0 and for a/b/rc versions. Only this job gets contents: write.
prepare checks the notes, the tag and existing releases with the same
action first, so that nothing is published if they are missing or
malformed.
The image job is renamed to release-image ("Release image") to free
the ID and name, as in FOCA. Add the curated notes of 1.2.0, keep
docs/releases/ out of the docs site, and describe the step in the
release docs.
Closes #139
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideImplementationValidate the curated notes, tag provenance, and existing releases during preparation, then create the GitHub release after the image is published with retry-safe behavior.
Rename the image-publishing job and update its workflow references so image release precedes GitHub release while Pubgrade notification remains independent.
DocumentationDocument the curated release-note requirements, automatic GitHub release behavior, retry and draft guidance, and independent Pubgrade notification.
Keep curated release notes out of the published MkDocs site.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Add the Maintenance entry for the GitHub release that the release workflow now creates (#139, #140). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #140 +/- ##
=======================================
Coverage 66.91% 66.91%
=======================================
Files 67 67
Lines 2699 2699
Branches 288 288
=======================================
Hits 1806 1806
Misses 746 746
Partials 147 147 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path=".github/workflows/release.yml" line_range="341" />
<code_context>
+ needs: [prepare, release-image]
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+ concurrency:
+ group: ${{ github.workflow }}-publish-release
+ cancel-in-progress: false
</code_context>
<issue_to_address>
**Published images lack GitHub releases**
When one `publish` job is running and two or more later releases reach the shared concurrency group, gitHub keeps only one pending job per concurrency group, so a newer run cancels the older pending `publish` job after `release-image` has published its image; no GitHub release is created unless someone reruns the canceled job.
Replace the shared concurrency group with a queue that retains every pending publish run.
Also at `.github/workflows/release.yml:342-343`.
</issue_to_address>Linked issues
#139 ci: create the GitHub release in the release workflow · 5 of 5 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Add a publish job after the image is published, with contents: write on that job only. |
✅ Met | The publish job is named “Publish release,” needs release-image, and grants contents: write only to that job. |
| 2 | Create the release body from curated notes followed by GitHub's generated notes under ## Commits, with the **Full Changelog** line last. |
✅ Met | The job invokes the shared publish-release action with the tagged version's curated notes and commit; the workflow documentation describes the required generated-notes format. |
| 3 | Make versions below 1.0.0 pre-releases, so 1.2.0 is a full release. | ✅ Met | The workflow documentation states that versions below 1.0.0 are pre-releases; 1.2.0 is above that threshold. |
| 4 | prepare must fail before anything is published if the tagged version's curated notes are missing or malformed. |
✅ Met | prepare runs the shared action in check-only mode with the version-specific notes path and tagged commit before the publishing jobs. |
| 5 | Add curated notes for 1.2.0 and describe the new release step in the release documentation. | ✅ Met | docs/releases/1.2.0.md is added, and docs/development.md describes the GitHub release step. |
Sourcery assessment
Needs a human reviewer. 1 finding to address first, and if the release action creates a release with incorrect notes or metadata, that release is publicly visible and reverting the workflow will not retract it. The release can be corrected or removed separately, but any exposure or reliance before then cannot be undone by the revert.
Blocking findings: .github/workflows/release.yml:341
Publish release runs one release at a time, so GitHub keeps only one waiting run per concurrency group and can cancel an older one when several tags are released at once. Say so in the workflow and the development guide, with the remedy (re-run the failed jobs). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
The release workflow now creates the GitHub release of a version tag itself, with the shared action
elixir-cloud-aai/.github/actions/publish-release(v1.1.0, pinned by commit):preparegets the step "Check release notes": the action in check-only mode validatesdocs/releases/<version>.md, that the tag exists and points to the release commit, the previous tag, and that no published release exists yet.publish→release-image("Release image"), so job names stay unique.publish("Publish release") runs afterrelease-image. It creates the release from the curated notes followed by GitHub's generated notes (the organisation's release notes format), as a pre-release for rc versions and below 1.0, and sets latest by version.docs/releases/1.2.0.mdholds the curated notes of 1.2.0.mkdocs.ymlexcludesreleases/from the docs site.docs/development.mddescribes the new step: delete leftover draft releases before tagging, re-run only failed jobs, and Pubgrade doesn't wait for the release.Closes #139
Verification
mkdocs build --strict: passes.The workflow steps can only run on a real tag. A fork dry run should confirm that the release is created after "Release image", with the curated notes,
## Commitsand the Full Changelog line.Declined review findings
publish, a waiting run can be cancelled if three or more tags are released at once. The group stays: GitHub has no queue for concurrency groups, and without the grouplatestcould be set out of order (release-imageuses the same pattern). The case can be recovered by re-running the cancelled job, which is now documented (b903eda).🤖 Generated with Claude Code