Skip to content

The NuGet workflow publishes an existing tag by hand - #2445

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
nuget-publish-a-tag-by-hand
Nov 14, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
nuget-publish-a-tag-by-hand

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

Follow-up to #2444, to publish 2.7.0.

2.7.0's release run (43545938674) failed all four pushes on the expired API key. Re-running it does not help, because a release event runs Nuget.yml as it stood at the tagged commit, which has the old key and no id-token permission.

This adds a workflow_dispatch trigger with a tag input:

  • the checkout takes the tag, so what is packed is exactly the tagged code, as for a release;
  • the version comes from the tag, as before, and is validated as SemVer, so a branch name is refused;
  • the login is the default branch's Nuget.yml, the file the trusted-publishing policy names. The file is not renamed.

The tag reaches the shell through env rather than being interpolated into the script.

After merge: gh workflow run Nuget.yml -f tag=v2.7.0.

🤖 Generated with Claude Code

A release event runs the workflow as it stood at the tagged commit, so a
release whose publish failed cannot be retried under a newer workflow by
re-running it. A workflow_dispatch with the tag checks the tag out and
packs it as the release would, with the login from the default branch's
workflow, which is the one the trusted-publishing policy names. The tag
reaches the shell through the environment rather than interpolated into
the script.

2.7.0's run failed on the expired API key before #2444; this publishes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.93%. Comparing base (fbbce18) to head (5c80a55).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2445   +/-   ##
=======================================
  Coverage   86.93%   86.93%           
=======================================
  Files         316      316           
  Lines       70574    70574           
  Branches    20613    20613           
=======================================
+ Hits        61355    61356    +1     
  Misses       4946     4946           
+ Partials     4273     4272    -1     
Flag Coverage Δ
cpp 37.77% <ø> (ø)
csharp 87.47% <ø> (+<0.01%) ⬆️
fsharp 32.97% <ø> (ø)
interactive 39.81% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 6 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Rafael-SOWNet
Rafael-SOWNet merged commit 5ec47ae into master Nov 14, 2026
28 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in AngouriMath Nov 14, 2026
@Rafael-SOWNet
Rafael-SOWNet deleted the nuget-publish-a-tag-by-hand branch November 14, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant