ci: auto-build in COPR on release - #548
Conversation
On a published release, build the SRPM (version from the tag) in a Fedora container and submit to COPR via copr-cli. Requires a COPR_API_TOKEN secret (contents of your COPR API config).
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 034eefac99
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| release: | ||
| types: [published] |
There was a problem hiding this comment.
Trigger COPR after the GITHUB_TOKEN-created release
The repository's normal release path will not invoke this workflow: .github/workflows/release.yml creates the published release through ncipollo/release-action using secrets.GITHUB_TOKEN (lines 88-101), and GitHub does not start subsequent workflows for events caused by that token (other than its documented dispatch exceptions). Consequently, pushing a normal version tag produces the GitHub release but never submits its SRPM to COPR; only a manually created release or workflow_dispatch will run this job. Trigger this from the tag/release workflow directly (or use an appropriate non-GITHUB_TOKEN trigger mechanism).
Useful? React with 👍 / 👎.
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
On a published release, builds the source RPM (version injected from the tag, so the binary reports the right version) in a
fedora:latestcontainer and submits it tothesapd/headsetcontrolviacopr-cli— the same flow validated manually on the runner + Rocky 10 VM.Setup needed: add a repo secret
COPR_API_TOKEN= the full contents of your COPR API config (grab it from https://copr.fedorainfracloud.org/api/ — the[copr-cli]block).Notes:
--nowaitso the job returns after submitting (watch progress on COPR).workflow_dispatch.