Skip to content

ci: add NuGet publish workflow and repository metadata#3

Merged
goneflyin merged 4 commits into
mainfrom
goneflyin/1/publish-to-nuget
Mar 13, 2026
Merged

ci: add NuGet publish workflow and repository metadata#3
goneflyin merged 4 commits into
mainfrom
goneflyin/1/publish-to-nuget

Conversation

@goneflyin
Copy link
Copy Markdown
Collaborator

Summary

  • Add tag-triggered GitHub Actions workflow (.github/workflows/publish.yml) that builds, tests, and publishes to nuget.org on v* tags
  • Add RepositoryUrl, RepositoryType, and PackageProjectUrl to CLI .csproj for complete NuGet package metadata

Manual steps required after merge

  1. Add a NUGET_API_KEY secret to the repo (Settings → Secrets → Actions), or configure Trusted Publishing on nuget.org for this repo/workflow
  2. Tag a release: git tag v0.1.0 && git push origin v0.1.0

Test plan

  • dotnet build — 0 warnings, 0 errors
  • dotnet pack — produces .nupkg with correct metadata
  • Inspected .nuspecprojectUrl, repository fields present
  • CI passes on PR
  • After merge: tag v0.1.0, verify publish workflow runs

Closes #1

🤖 Generated with Claude Code

goneflyin and others added 4 commits March 12, 2026 18:28
Add tag-triggered GitHub Actions workflow that builds, tests, and
publishes to nuget.org on v* tags. Add RepositoryUrl, RepositoryType,
and PackageProjectUrl to CLI .csproj for NuGet package metadata.

Closes #1

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Fix broken GitHub link in CLI README (7f → 7Factor)
- Fix command name in CLI README (dotnet crap → dotnet-crap)
- Fix CLI README usage examples to require --coverage or --run-tests
- Update root README install section now that NuGet package exists
- Replace <repo-url> placeholders with actual GitHub URL

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace hardcoded Version in .csproj with MinVer, which derives the
package version from git tags (e.g. v0.1.0 → 0.1.0). Remove manual
version extraction from publish workflow since MinVer handles it.
Add fetch-depth: 0 to both CI and publish workflows so MinVer can
read the full tag history.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@goneflyin goneflyin merged commit b173d10 into main Mar 13, 2026
1 check passed
@goneflyin goneflyin deleted the goneflyin/1/publish-to-nuget branch March 13, 2026 00:09
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.

Publish crap4dotnet to NuGet.org

1 participant