Release Please & GitHub Releases troubleshooting
Automated releases use release-please plus three workflows:
| Workflow | Trigger | Role |
|---|---|---|
release-please.yml | Push to main | Open/update Release PRs; on merge, tag + export/upload STL/PNG |
release-assets.yml | workflow_call | Shared Dagger export + softprops/action-gh-release upload |
release.yml | Tag push vX.Y.Z or workflow_dispatch | Manual tag fallback or repair run |
Prerequisites: Set up GitHub (workflow permissions, squash merge) and read Releases for the happy path.
How the pieces connect
Important: release-please creates tags through the GitHub API. That does not emit a tag push event. Asset export must run inside release-please.yml (or via release.yml workflow_dispatch). Relying on tag push alone left v0.3.0 with changelog text but no STL/PNG files.
Quick routing
| Symptom | Jump to |
|---|---|
No Release PR after feat: / fix: merge | Release PR never opens |
| Release PR stuck / will not update | Stale autorelease label |
commit could not be parsed in Actions log | Unparsed merge commits |
| Merged Release PR but no GitHub Release | No release after merge |
There are untagged, merged release PRs outstanding | Untagged merged Release PR |
| Release exists but no STL/PNG assets | Missing release assets |
Resource not accessible by integration | 403 on create-a-release |
release.yml fails in 0s / workflow not valid | Invalid workflow expressions |
| Tag push does nothing | Tag push ignored |
| Duplicate releases or tags | Duplicate publish paths |
| Export step fails in publish job | Asset export failures |
Release PR never opens
Symptom: You merged a feat: or fix: PR to main; no Release PR appears within a few minutes.
Likely causes
- Workflow permissions — Settings → Actions → General must be Read and write permissions with Allow GitHub Actions to create and approve pull requests enabled. See Actions workflow permissions.
- Commit type not releasable —
chore:,ci:, andtest:commits do not open Release PRs on their own underrelease-type: python. You need at least one mergedfeat:,fix:,docs:, ordeps:squash title since the last release. - Failed workflow run — Open Actions → Release Please on the
mainpush and read the log.
Fix
- Confirm permissions on GitHub.com.
- Merge another releasable PR, or re-run Release Please (
workflow_dispatch). - If a previous run left the repo in a bad state, see Untagged merged Release PR.
Release PR will not update
Symptom: An old Release PR exists but new commits on main are not reflected in the version bump or changelog.
Cause: Stale autorelease: pending label on an older merged or abandoned Release PR. release-please refuses to proceed until that label is cleared (upstream docs).
Fix
- Find PRs with label
autorelease: pending. - Remove the label from stale PRs (or close abandoned Release PRs).
- Re-run Release Please on
main.
Commit could not be parsed
Symptom: Release Please log contains commit could not be parsed: Merge remote-tracking branch … or similar.
Cause: A merge commit (not squash) landed on main. release-please expects linear Conventional Commit squash subjects.
Fix
- Prefer squash merge for all PRs to
main(recommended in GitHub setup). - The warning is often harmless if later commits are valid; fix merge settings so it does not recur.
- Avoid
git mergedirectly onmainwhen contributing locally.
No GitHub Release after merge
Symptom: Release PR merged, but Repository → Releases has no new vX.Y.Z.
Likely causes
- Wrong squash title — The merge commit subject must be exactly
chore: release X.Y.Z(release-please sets this on the Release PR). Do not edit the squash title when merging. - Workflow syntax error — A invalid
if:expression in.github/workflows/*.ymlcan fail workflow validation before any job runs (historically=~instead ofmatches()inrelease.yml). Check Actions for a failed workflow file onmain. skip-github-release: true— Do not set this ongoogleapis/release-please-action. It leaves merged Release PRs without a GitHub Release and triggers untagged merged Release PR errors later.
Fix
- Confirm squash subject on the merge commit (
git log -1 --oneline main). - Open the Release Please run for that push; confirm
release_createdwastrue. - If the release was never created, recover with Untagged merged Release PR.
Untagged merged Release PR
Symptom: release-please log: There are untagged, merged release PRs outstanding - aborting.
Cause: A Release PR was squash-merged but no matching vX.Y.Z tag exists. Common when:
skip-github-release: truewas enabled (tag-only mode).- The release-please step failed after merge.
- Someone deleted the tag manually.
Fix
- Find the merged Release PR and its merge commit SHA (e.g.
chore: release 0.3.0). - Remove stale
autorelease: pendingfrom that PR if still present. - Create the missing tag on the merge commit:
Or use the GitHub UI: Releases → Draft → choose tag → create from merge commit.git fetch origingit tag v0.3.0 <merge-commit-sha>git push origin v0.3.0
- Add label
autorelease: taggedto the merged Release PR. - Re-run Release Please on
main. - If the GitHub Release exists but assets are missing, use Repair a broken release.
Missing release assets
Symptom: GitHub Release shows changelog text (or an empty asset list) but no *.stl / *.png files. Example: v0.3.0 before the workflow fix.
Cause: Asset upload was wired only to release.yml on tag push. release-please creates tags via the GitHub API, which does not fire on: push: tags:. The CI workflow on main (ci.yml) is unrelated to release asset upload.
What a healthy run looks like
After merging a Release PR, Actions should show Release Please with two jobs:
- Create or update release PR — succeeds (~seconds)
- Publish release assets — succeeds (~8 minutes, Dagger export)
Fix (repair existing release)
- Merge the workflow fix (or ensure
publish-assetsexists inrelease-please.yml). - Actions → Release → Run workflow → enter tag
v0.3.0→ Run. - Wait for Quality gate + Publish release assets to finish.
- Confirm assets:
gh release view v0.3.0 --repo OWNER/REPO
Fix (future releases) — Keep asset publish in release-please.yml via release-assets.yml; do not assume tag push alone will upload files.
Resource not accessible by integration
Symptom: 403 or Resource not accessible by integration on create-a-release or gh release.
Likely causes
- Released commit changes
.github/workflows/— GitHub enforces extra scope for releases that ship workflow file changes.GITHUB_TOKENcannot declareworkflows: writein workflow YAML (invalid scope); merge workflow fixes in a separate PR before the Release PR, or use a PAT/GitHub App withworkflowsscope (enforcement changelog). - Duplicate publish steps — Both release-please and a custom
gh release createstep tried to publish in the same workflow (fixed in template by a single publish path). - Repo workflow permissions still read-only — see Release PR never opens.
- Local
ghpush of workflow changes withoutworkflowOAuth scope — refresh withgh auth refresh -s workflowwhen editing.github/workflows/locally (CI usesGITHUB_TOKENand does not need this).
Fix
- Merge
.github/workflows/changes tomainbefore merging the Release PR when possible so the tagged commit only bumps version/changelog. - Use only
release-please.yml+release-assets.yml+release.yml— do not add parallelgh release createsteps. - Do not run
gh release createfor normal publishes (single publish path). - Confirm Read and write workflow permissions on the repository.
Invalid workflow if expressions
Symptom: release.yml (or another workflow) shows failure in 0s with no job logs, often on the same push as a Release PR merge.
Cause: GitHub Actions rejected the workflow file at parse time. The template once used if: github.ref_name =~ '^v…' — =~ is not valid; use matches(github.ref_name, '^v…') (fix commit).
Fix
- Actions → failed workflow → confirm "workflow file issue" or missing jobs.
- Validate
if:expressions against GitHub Actions expressions. - Merge the fix, then recover the release per Missing release assets or Untagged merged Release PR.
Tag push ignored
Symptom: You ran just version-tag or git push origin v1.0.0 but no Release workflow ran.
Likely causes
- Tag pattern —
release.ymlonly matches strict semver:v[0-9]+.[0-9]+.[0-9]+. Tags likev0.1.0-testorv0.1.0-rc1are ignored by design. - Tag already exists on GitHub — pushing the same tag again may not re-trigger unless forced (avoid force-pushing release tags on
mainrepos). - Workflow disabled or workflow file missing on the tagged commit.
Fix
- Use
v1.2.3format only for automated publish. - For repair without re-tagging, use Release →
workflow_dispatchwith the existing tag name. - Prefer the release-please Release PR path for changelog discipline.
Duplicate publish paths
Symptom: Two releases for one version, missing assets on one, or 403 errors mid-workflow.
Cause: Historically the template tried to publish from both release-please and a tag-triggered job and manual gh release steps. Only one path should create/update the release and attach assets.
Current design
| Path | Creates release? | Uploads STL/PNG? |
|---|---|---|
| Merge Release PR | release-please (API) | publish-assets in release-please.yml |
Push vX.Y.Z tag | softprops/action-gh-release in release.yml | same release-assets.yml |
workflow_dispatch | Updates existing release | same release-assets.yml |
Fix: Remove extra gh release create / duplicate upload steps. Inspect with gh release list and delete erroneous drafts if needed.
Asset export failures
Symptom: Publish release assets fails during Dagger release-artifact or release-notes, or succeeds but the release has no STL/PNG files.
Likely causes
- No releasable artifacts — Only
@artifactfunctions that also declare@renderare included in release bundles. Runjust mr-artifactsand confirm names. - Export smoke failure — Geometry or import error in
cad/. Runjust export-smokeorjust cilocally. - Missing PNG for a render — Each
@renderon an artifact needs a matching exported PNG. See Export and CI/CD pipeline troubleshooting. - Empty
dist/after export —release-assets.ymlsetsfail_on_unmatched_files: trueso a green run cannot upload zero assets silently. - Dagger / Docker unavailable on the runner — rare on
ubuntu-latest; compare with Dagger troubleshooting.
Fix
just export-smoke
just release dist/
just release-notes v0.0.0
Fix model code until local release export succeeds, then re-run the failed workflow.
Repair a broken release
Use this checklist when a version tag exists but the release is incomplete.
1. Inspect current state
gh release view v0.3.0 --repo OWNER/REPO
gh run list --workflow=release-please.yml --repo OWNER/REPO --limit 5
gh run list --workflow=release.yml --repo OWNER/REPO --limit 5
2. Choose a recovery action
| State | Action |
|---|---|
| No GitHub Release | Untagged merged Release PR |
| Release exists, no assets | Release workflow → workflow_dispatch → tag v0.3.0 |
| Assets wrong after model fix | Re-run workflow_dispatch (overwrite_files defaults to true on softprops/action-gh-release; body may duplicate if append_body ran before) |
| Entire release wrong version | Do not delete tags lightly; open an issue or cut v0.3.1 with a fix forward |
3. Verify
- Release page lists
*.stland*.pngfor each@renderartifact. - Preview images in the release body use
releases/download/vX.Y.Z/URLs (release notes). - Optional:
gh release download v0.3.0 --repo OWNER/REPO
Override release notes after merge
If the squash title was wrong but the PR is already on main, edit the merged PR description on GitHub.com and add:
BEGIN_COMMIT_OVERRIDE
feat(sphere): correct subject for changelog
END_COMMIT_OVERRIDE
Re-run release-please or wait for the next push to main. See AGENTS.md — Fixing release notes.
Related docs
- Releases (getting started) — first release checklist
- Releases workflow — Conventional Commits reference and dry-run commands
- Set up GitHub — permissions, branch protection, Pages
- Export and CI/CD pipeline troubleshooting — artifact discovery and
@render - release-please upstream — labels, manifest, and config reference