Skip to content

Merge the minor and patch release workflows into one - #1430

Merged
martindevans merged 2 commits into
SciSharp:masterfrom
m0nsky:refactor/single-release-workflow
Aug 24, 2026
Merged

Merge the minor and patch release workflows into one#1430
martindevans merged 2 commits into
SciSharp:masterfrom
m0nsky:refactor/single-release-workflow

Conversation

@m0nsky

@m0nsky m0nsky commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

As discussed in Discord. The new trigger doesn't have the old checkout/setup-dotnet because it wasn't used for anything (trigger doesn't build anything, no artifacts/outputs).

The two pairs were identical apart from their names once the version moved into
LLamaSharp.csproj, so they are now a single release-trigger/release pair accepting
either label. That also fixes labelling a PR with both labels, which used to release
nothing because each trigger excluded the other's.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Consolidates the minor/patch release automation by replacing separate trigger workflows with a single PR-label-gated trigger workflow that fans into the existing NuGet/doc/HF publishing workflow via workflow_run.

Changes:

  • Renamed the main release workflow and updated its workflow_run dependency to a new unified trigger workflow.
  • Added a new release-trigger workflow that runs (does no work) only when a merged PR into master has either minor-release or patch-release label.
  • Removed the redundant patch release workflow and the two separate minor/patch trigger workflows.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.github/workflows/release.yml Renames the workflow and retargets the workflow_run trigger to the new unified trigger workflow.
.github/workflows/release-trigger.yml New unified PR-label-gated trigger workflow used to gate releases via workflow_run.
.github/workflows/release-patch.yml Removes the now-redundant patch release workflow (release logic is consolidated into release.yml).
.github/workflows/release-patch-trigger.yml Removes the patch-only trigger workflow (superseded by release-trigger.yml).
.github/workflows/release-minor-trigger.yml Removes the minor-only trigger workflow (superseded by release-trigger.yml).

馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/release-trigger.yml Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@martindevans
martindevans merged commit e0ab792 into SciSharp:master Aug 24, 2026
8 checks passed
@m0nsky
m0nsky deleted the refactor/single-release-workflow branch August 24, 2026 19:12
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