Skip to content

fix(ci): restore automatic tag+release creation on main pushes#30

Merged
liam-russell merged 3 commits into
mainfrom
copilot/fix-release-step-main-branch
May 19, 2026
Merged

fix(ci): restore automatic tag+release creation on main pushes#30
liam-russell merged 3 commits into
mainfrom
copilot/fix-release-step-main-branch

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 19, 2026

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 every main push.

Changes

  • Release job if condition — expanded from tag-only (startsWith(github.ref, 'refs/tags/v')) to also fire on refs/heads/main
  • tag_name — computed at runtime: main-<run_number> for main-branch runs, github.ref_name for tag-triggered runs
  • name — similarly computed: Main build <run_number> vs the tag name
  • prerelease flag — main-branch builds are automatically marked as prereleases; tagged releases use the existing - convention

This restores the auto-tagging behavior that existed before the Electron migration.

Copilot AI and others added 3 commits May 19, 2026 01:57
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>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 release job gating to run on refs/heads/main as well as refs/tags/v*.
  • Compute tag_name/name dynamically (main-<run_number> / Main build <run_number> for main, github.ref_name for tag builds).
  • Mark main builds as prereleases while preserving the existing - prerelease convention for version tags.

@liam-russell liam-russell marked this pull request as ready for review May 19, 2026 02:53
@liam-russell liam-russell merged commit f5fd213 into main May 19, 2026
19 checks passed
@liam-russell liam-russell deleted the copilot/fix-release-step-main-branch branch May 19, 2026 02:54
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.

3 participants