Skip to content

Remove legacy "Create Release" workflow (release.yml)#5560

Merged
tig merged 3 commits into
developfrom
chore/remove-legacy-create-release
Jun 28, 2026
Merged

Remove legacy "Create Release" workflow (release.yml)#5560
tig merged 3 commits into
developfrom
chore/remove-legacy-create-release

Conversation

@tig

@tig tig commented Jun 28, 2026

Copy link
Copy Markdown
Member

Summary

Removes the legacy "Create Release" workflow (.github/workflows/release.yml). It is both broken and redundant.

Broken

release.yml pins GitVersion versionSpec: '6.0.x', but gittools/actions/gitversion/setup@v4.5.0 requires >=6.1.0. The Install GitVersion step therefore fails immediately:

Version spec '6.0.x' resolved as '6.0.5' does not satisfy the range '>=6.1.0 <7.0.0'.

Every dispatch of this workflow has failed at this step (most recently when attempting to cut v2.4.15). Its sibling workflows publish.yml and prepare-release.yml correctly use '6.x'.

Redundant

Releases are produced by the PR-based flow already in place:

  • Prepare Release → opens a release/vX.Y.Z PR from developmain
  • Finalize Release (on merge) → creates the tag + GitHub Release + back-merge PR
  • publish.yml → triggered by the v* tag, pushes to NuGet.org

release.yml duplicated this (direct tag-and-release on main) and additionally tried to push a commit directly to the protected main branch.

Changes

  • Delete .github/workflows/release.yml
  • Terminal.slnx — drop the release.yml file entry
  • Terminal.Gui/README.md — drop the legacy workflow table row
  • .github/workflows/README.md — remove the "Create Release" section, renumber, and fix the publish trigger description
  • CONTRIBUTING.md — document the Prepare/Finalize release flow instead of "Create Release"

Notes

  • No CI/workflow references release.yml; publish.yml is triggered by the v* tag push, not by this workflow.
  • v2.4.15 was just cut by pushing the tag directly (equivalent to what this workflow would have done) because of the breakage above.

🤖 Generated with Claude Code

release.yml ("Create Release") is broken and redundant:

- Broken: it pins GitVersion `versionSpec: '6.0.x'`, but
  gittools/actions/gitversion/setup@v4.5.0 requires >=6.1.0, so the
  "Install GitVersion" step fails immediately (every run since Jan 2026
  has failed at this step). Its siblings publish.yml / prepare-release.yml
  correctly use '6.x'.
- Redundant: releases are produced by the PR-based flow — Prepare Release
  (develop → main release PR) + Finalize Release (tag, GitHub Release,
  back-merge) — with publish.yml triggered by the `v*` tag.

Removes the workflow and updates all references:
- Terminal.slnx: drop the release.yml file entry
- Terminal.Gui/README.md: drop the legacy workflow table row
- .github/workflows/README.md: drop the "Create Release" section,
  renumber, and fix the publish trigger description
- CONTRIBUTING.md: document the Prepare/Finalize release flow instead

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

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

Removes the legacy “Create Release” GitHub Actions workflow and updates solution/docs to reflect the PR-based Prepare/Finalize release process already in use.

Changes:

  • Deletes .github/workflows/release.yml (legacy, broken, redundant).
  • Removes release.yml references from the solution items list and workflow documentation.
  • Updates contributor docs to describe the Prepare Release → Finalize Release flow.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
Terminal.slnx Removes the solution-item entry for the deleted legacy workflow.
Terminal.Gui/README.md Drops the legacy workflow row from the CI/CD workflows table.
CONTRIBUTING.md Replaces “Create Release” instructions with Prepare/Finalize PR-based release instructions.
.github/workflows/release.yml Deletes the legacy “Create Release” workflow.
.github/workflows/README.md Removes the “Create Release” section; updates publish section context and renumbers sections.

Comment on lines +59 to 62
### 5) Build and publish API docs (`.github/workflows/api-docs.yml`)

- **Triggers**: push to `main`
- Builds DocFX site on Windows and deploys to GitHub Pages
Comment thread Terminal.Gui/README.md Outdated
@@ -111,7 +111,6 @@ All workflows are in [`.github/workflows/`](../.github/workflows/):
| **[prepare-release.yml](../.github/workflows/prepare-release.yml)** | Manual dispatch | Creates a release PR from `develop` → `main` with label updates |
| **[finalize-release.yml](../.github/workflows/finalize-release.yml)** | Release PR merged to `main` | Creates tag, GitHub Release, back-merge PR to `develop` |
| **[publish.yml](../.github/workflows/publish.yml)** | Push to `main` or `develop`, version tags | Builds Release config, packs, and publishes to NuGet.org |
Comment thread CONTRIBUTING.md Outdated
- Automatically trigger the publish workflow to push the package to NuGet.org
5. **Click "Run workflow"** to create the release PR

Prepare Release creates a `release/vX.Y.Z` branch (with the GitVersion label updated for the release type) and opens a PR into `main`. After CI passes, **review and merge that PR**. Merging triggers **Finalize Release**, which:
Fixes 3 doc accuracy issues flagged in review:
- .github/workflows/README.md: api-docs.yml triggers on push to `develop`
  + workflow_dispatch, not `main`
- Terminal.Gui/README.md: publish.yml triggers on push to `develop` and
  `v*` tags, not `main`
- CONTRIBUTING.md: clarify Prepare Release creates `release/<tag>` where
  the tag includes the pre-release suffix (e.g. release/v2.0.0-beta.1)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tig

tig commented Jun 28, 2026

Copy link
Copy Markdown
Member Author

Thanks — all three were valid (pre-existing trigger inaccuracies adjacent to the change, plus the branch-name nit). Fixed in 1fdc72f:

  1. .github/workflows/README.md (api-docs) — corrected push to mainpush to develop + workflow_dispatch (matches api-docs.yml on:).
  2. Terminal.Gui/README.md (publish row) — corrected to Push to develop, or v* tags (matches publish.yml on.push.branches: [develop] + tags: [v*]; it does not run on main).
  3. CONTRIBUTING.md — clarified Prepare Release creates release/<tag> where <tag> is the full version tag, e.g. release/v2.0.0 or release/v2.0.0-beta.1.

Same trigger inaccuracies as the prior fixes, elsewhere in
Terminal.Gui/README.md:
- Prepare Release branch is `release/<tag>` including the pre-release
  suffix (e.g. release/v2.0.0-beta.1)
- NuGet auto-publish is on push to `develop` + `v*` tag pushes, not on
  pushes to `main`
- API docs deploy on push to `develop`, not `main`

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tig tig merged commit ffe4944 into develop Jun 28, 2026
15 checks passed
@tig tig deleted the chore/remove-legacy-create-release branch June 28, 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.

2 participants