Fixes #5114. Remove main from publish branch triggers; use tags only#5115
Merged
Fixes #5114. Remove main from publish branch triggers; use tags only#5115
Conversation
--- updated-dependencies: - dependency-name: ReportGenerator dependency-version: 5.5.6 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* Initial plan * docs: reframe layout docs around responsive UI Agent-Logs-Url: https://github.com/gui-cs/Terminal.Gui/sessions/a6b913bd-38e5-4d80-ac23-9dc8e6716045 Co-authored-by: tig <585482+tig@users.noreply.github.com> * docs: polish responsive layout wording Agent-Logs-Url: https://github.com/gui-cs/Terminal.Gui/sessions/a6b913bd-38e5-4d80-ac23-9dc8e6716045 Co-authored-by: tig <585482+tig@users.noreply.github.com> * docs: tighten instructional sentence style Agent-Logs-Url: https://github.com/gui-cs/Terminal.Gui/sessions/d453216b-6d43-4261-aa23-0dad98805e91 Co-authored-by: tig <585482+tig@users.noreply.github.com> * docs: fix remaining instructional prose Agent-Logs-Url: https://github.com/gui-cs/Terminal.Gui/sessions/d7be6123-896e-4b95-8e3f-0cee1d6d35d1 Co-authored-by: tig <585482+tig@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tig <585482+tig@users.noreply.github.com>
Back-merge v2.0.0 from main into develop
Main branch pushes were triggering the publish workflow without a release tag, causing GitVersion to produce invalid NuGet versions (e.g. 2.0.0-5420). - Remove main from branches trigger; stable releases now publish only on v* tag push - Develop branch pushes continue publishing pre-release packages automatically - Update template dispatch conditions to match tag-based flow Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
tig
added a commit
that referenced
this pull request
Apr 29, 2026
…5115) * Bump ReportGenerator from 5.5.5 to 5.5.6 --- updated-dependencies: - dependency-name: ReportGenerator dependency-version: 5.5.6 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Update Examples link in README.md (#5104) * Reframe layout docs around responsive UI and instructional style (#5110) * Initial plan * docs: reframe layout docs around responsive UI Agent-Logs-Url: https://github.com/gui-cs/Terminal.Gui/sessions/a6b913bd-38e5-4d80-ac23-9dc8e6716045 Co-authored-by: tig <585482+tig@users.noreply.github.com> * docs: polish responsive layout wording Agent-Logs-Url: https://github.com/gui-cs/Terminal.Gui/sessions/a6b913bd-38e5-4d80-ac23-9dc8e6716045 Co-authored-by: tig <585482+tig@users.noreply.github.com> * docs: tighten instructional sentence style Agent-Logs-Url: https://github.com/gui-cs/Terminal.Gui/sessions/d453216b-6d43-4261-aa23-0dad98805e91 Co-authored-by: tig <585482+tig@users.noreply.github.com> * docs: fix remaining instructional prose Agent-Logs-Url: https://github.com/gui-cs/Terminal.Gui/sessions/d7be6123-896e-4b95-8e3f-0cee1d6d35d1 Co-authored-by: tig <585482+tig@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tig <585482+tig@users.noreply.github.com> * Fixes #5114. Remove main from publish branch triggers; use tags only Main branch pushes were triggering the publish workflow without a release tag, causing GitVersion to produce invalid NuGet versions (e.g. 2.0.0-5420). - Remove main from branches trigger; stable releases now publish only on v* tag push - Develop branch pushes continue publishing pre-release packages automatically - Update template dispatch conditions to match tag-based flow Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: tig <585482+tig@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
BDisp
pushed a commit
to BDisp/Terminal.Gui
that referenced
this pull request
Apr 29, 2026
… only (gui-cs#5115) * Bump ReportGenerator from 5.5.5 to 5.5.6 --- updated-dependencies: - dependency-name: ReportGenerator dependency-version: 5.5.6 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Update Examples link in README.md (gui-cs#5104) * Reframe layout docs around responsive UI and instructional style (gui-cs#5110) * Initial plan * docs: reframe layout docs around responsive UI Agent-Logs-Url: https://github.com/gui-cs/Terminal.Gui/sessions/a6b913bd-38e5-4d80-ac23-9dc8e6716045 Co-authored-by: tig <585482+tig@users.noreply.github.com> * docs: polish responsive layout wording Agent-Logs-Url: https://github.com/gui-cs/Terminal.Gui/sessions/a6b913bd-38e5-4d80-ac23-9dc8e6716045 Co-authored-by: tig <585482+tig@users.noreply.github.com> * docs: tighten instructional sentence style Agent-Logs-Url: https://github.com/gui-cs/Terminal.Gui/sessions/d453216b-6d43-4261-aa23-0dad98805e91 Co-authored-by: tig <585482+tig@users.noreply.github.com> * docs: fix remaining instructional prose Agent-Logs-Url: https://github.com/gui-cs/Terminal.Gui/sessions/d7be6123-896e-4b95-8e3f-0cee1d6d35d1 Co-authored-by: tig <585482+tig@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tig <585482+tig@users.noreply.github.com> * Fixes gui-cs#5114. Remove main from publish branch triggers; use tags only Main branch pushes were triggering the publish workflow without a release tag, causing GitVersion to produce invalid NuGet versions (e.g. 2.0.0-5420). - Remove main from branches trigger; stable releases now publish only on v* tag push - Develop branch pushes continue publishing pre-release packages automatically - Update template dispatch conditions to match tag-based flow Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: tig <585482+tig@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Apr 30, 2026
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.
Problem
The publish workflow triggers on every push to
main, but without a release tag GitVersion produces versions like2.0.0-5420(purely numeric pre-release label) which NuGet rejects as invalid.Fix
mainfrom thebranchestrigger — stable releases now publish only when av*tag is pushed (e.g.,git tag v2.0.1 && git push origin v2.0.1)developbranch pushes continue publishing pre-release packages automatically (e.g.,2.1.0-develop.1)github.ref == 'refs/heads/main'tostartsWith(github.ref, 'refs/tags/v')to match the tag-based flowRelease Process After Merge
maingit tag v2.0.1 <sha> && git push origin v2.0.12.0.1on NuGet(
v2.0.0is skipped since an ancient invalid package already occupies that version on NuGet.)