ci: add NuGet publish workflow on tag push#8
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
.github/workflows/publish.yml— a GitHub Actions workflow that publishes NuGet packages when av*tag is pushed.Workflow details:
v*tag push (e.g.git tag v1.0.0 && git push origin v1.0.0)/p:Version=to override any hardcoded version in.csprojAxisEndpointsandAxisEndpoints.Extensions.CsvHelper.nupkgfiles to NuGet.org usingNUGET_API_KEYsecret with--skip-duplicate10.0.xto match thenet10.0target frameworkReview & Testing Checklist for Human
NUGET_API_KEYrepository secret is configured (NuGet.org → API Keys)include-prerelease: trueto theactions/setup-dotnetstepgit tag v0.0.1-test && git push origin v0.0.1-testand verifying the workflow runsNotes
--skip-duplicateso re-pushing an existing version won't fail.net10.0, thedotnet-versionis set to10.0.x.Link to Devin session: https://app.devin.ai/sessions/2497a3064d034ccc8793e43de0ca6235
Requested by: @sheepla