Skip to content

Create GitHub Release before invoking qgis-plugin-ci#95

Merged
elfpkck merged 1 commit into
mainfrom
fix-release-workflow-create-github-release
Jun 1, 2026
Merged

Create GitHub Release before invoking qgis-plugin-ci#95
elfpkck merged 1 commit into
mainfrom
fix-release-workflow-create-github-release

Conversation

@elfpkck

@elfpkck elfpkck commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Summary

The 1.2.0 release failed in the Publish to plugins.qgis.org job because qgis-plugin-ci release queries the GitHub Release by tag (to determine prerelease status) and fails with GithubReleaseNotFound if it doesn't exist yet (see run 26751390918). Recovered by creating the release manually + rerunning.

This PR adds a Create GitHub Release step before the Release step so the workflow self-heals on future tags. Prerelease suffix (X.Y.Z-rc1) is detected and passed to gh release create --prerelease so the QGIS portal flags it as experimental. Notes are auto-generated from merged PRs (--generate-notes); the CHANGELOG section is still patched into the published .zip by qgis-plugin-ci.

Test plan

  • Merge to main
  • On the next tag push, confirm the Create GitHub Release step succeeds and the Release step proceeds without manual intervention
  • For a prerelease tag like X.Y.Z-rc1, confirm the GitHub Release is marked as prerelease and the QGIS portal lists it as experimental

`qgis-plugin-ci release` requires the GitHub Release to exist (it
queries it to determine prerelease status). Without this step, the
publish job fails with `GithubReleaseNotFound` (404). Create the
release first using `gh release create`, marking it prerelease when
the tag has a suffix like `1.2.0-rc1`.
@codecov

codecov Bot commented Jun 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@ef1de2d). Learn more about missing BASE report.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #95   +/-   ##
=======================================
  Coverage        ?   93.67%           
=======================================
  Files           ?        9           
  Lines           ?      253           
  Branches        ?       23           
=======================================
  Hits            ?      237           
  Misses          ?        8           
  Partials        ?        8           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@elfpkck elfpkck self-assigned this Jun 1, 2026
@elfpkck elfpkck merged commit b913cf4 into main Jun 1, 2026
7 checks passed
@elfpkck elfpkck deleted the fix-release-workflow-create-github-release branch June 1, 2026 15:00
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.

1 participant