Create GitHub Release before invoking qgis-plugin-ci#95
Merged
Conversation
`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 Report✅ All modified and coverable lines are covered by tests. 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The 1.2.0 release failed in the
Publish to plugins.qgis.orgjob becauseqgis-plugin-ci releasequeries the GitHub Release by tag (to determine prerelease status) and fails withGithubReleaseNotFoundif it doesn't exist yet (see run 26751390918). Recovered by creating the release manually + rerunning.This PR adds a
Create GitHub Releasestep before theReleasestep so the workflow self-heals on future tags. Prerelease suffix (X.Y.Z-rc1) is detected and passed togh release create --prereleaseso 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.zipbyqgis-plugin-ci.Test plan
mainCreate GitHub Releasestep succeeds and theReleasestep proceeds without manual interventionX.Y.Z-rc1, confirm the GitHub Release is marked as prerelease and the QGIS portal lists it as experimental