Conversation
Co-authored-by: maikebing <3445167+maikebing@users.noreply.github.com>
Co-authored-by: maikebing <3445167+maikebing@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update GitHub Action to handle tag deployments
Switch NuGet publish workflow to tag-driven releases with 4-part versioning
Mar 17, 2026
There was a problem hiding this comment.
Pull request overview
This PR updates the NuGet publishing workflow to run from version tags (e.g., v9.3.0.4) instead of release.published, and introduces a dedicated version normalization/validation step to enforce 4-part versions across all packaged projects.
Changes:
- Switch workflow trigger from
release.publishedtopush.tags: v*(while keepingworkflow_dispatch). - Add a
preparejob to normalize and validate the version (strip leadingv, enforcex.y.z.w) and expose it via job outputs. - Use the normalized version output for all
dotnet packsteps, and add GitHub Release upload/create behavior on tag builds.
Comment on lines
+56
to
+62
| if [[ "${GITHUB_REF}" =~ ^refs/tags/ ]]; then | ||
| RAW_TAG="${GITHUB_REF_NAME}" | ||
| fi | ||
|
|
||
| if [ -z "$RAW_TAG" ]; then | ||
| RAW_TAG="v$VERSION" | ||
| fi |
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.
This updates the release pipeline to publish from version tags instead of
releaseevents. Tags likev9.3.0.4now drive package version generation, package builds, GitHub Release publication, GitHub Packages publication, and NuGet.org publication in one flow.Tag-driven release entrypoint
release.publishedtrigger withpush.tags: v*workflow_dispatchfor manual runs, but align its version input with the same tag-based formatVersion normalization
preparejob to derive the package version from the tag/inputvprefix fordotnet packv9.3.0.4/9.3.0.4Packaging flow
LVGLSharp.NativeLVGLSharp.InteropLVGLSharp.CoreLVGLSharp.Runtime.WindowsLVGLSharp.Runtime.LinuxLVGLSharp.FormsRelease publishing
.nupkgartifacts to:Workflow hardening
preparejob🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.