fix(ci): restore automatic tag+release creation on main pushes#30
Merged
Conversation
Agent-Logs-Url: https://github.com/InterestingSoftware/SproutGit/sessions/3e471ce1-0819-413a-8f76-d8a0eb82dedd Co-authored-by: liam-russell <17897133+liam-russell@users.noreply.github.com>
Agent-Logs-Url: https://github.com/InterestingSoftware/SproutGit/sessions/3e471ce1-0819-413a-8f76-d8a0eb82dedd Co-authored-by: liam-russell <17897133+liam-russell@users.noreply.github.com>
Agent-Logs-Url: https://github.com/InterestingSoftware/SproutGit/sessions/3e471ce1-0819-413a-8f76-d8a0eb82dedd Co-authored-by: liam-russell <17897133+liam-russell@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
liam-russell
May 19, 2026 02:46
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Restores the CI workflow’s automatic GitHub Release creation on main pushes (in addition to v* tag pushes), matching the pre-Electron behavior while keeping tagged releases intact.
Changes:
- Expand the
releasejob gating to run onrefs/heads/mainas well asrefs/tags/v*. - Compute
tag_name/namedynamically (main-<run_number>/Main build <run_number>formain,github.ref_namefor tag builds). - Mark
mainbuilds as prereleases while preserving the existing-prerelease convention for version tags.
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.
After the Electron branch was merged, the release job was gated on
startsWith(github.ref, 'refs/tags/v')only — meaning tags had to be created manually before any release would publish. The old workflow created tags automatically on everymainpush.Changes
ifcondition — expanded from tag-only (startsWith(github.ref, 'refs/tags/v')) to also fire onrefs/heads/maintag_name— computed at runtime:main-<run_number>for main-branch runs,github.ref_namefor tag-triggered runsname— similarly computed:Main build <run_number>vs the tag nameprereleaseflag — main-branch builds are automatically marked as prereleases; tagged releases use the existing-conventionThis restores the auto-tagging behavior that existed before the Electron migration.