Implement smart release management: build on all pushes/merges with automatic artifact updates #9
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.
Overview
This PR completely redesigns the GitHub Actions workflow to implement intelligent release and artifact management. The workflow now builds on every push and merge, automatically updating artifacts for existing releases or creating new releases when the version changes.
Problem
The previous workflow had several limitations:
v*)Solution
The workflow has been redesigned with smart release management:
🔄 Continuous Integration
🧠 Intelligent Release Logic
The workflow now follows this decision flow:
Beblia.Sharp.csprojv{version}using GitHub API📦 Artifact Management
.nupkg) and compiled DLL are always kept up-to-dateKey Features
<Version>in csproj fileExample Workflows
Scenario 1: Bug Fix (Same Version)
Scenario 2: New Feature (Version Bump)
Scenario 3: Feature Branch
Changes
.github/workflows/release.yml: Complete redesign (+120 lines, -36 lines)Testing
✅ YAML syntax validated
✅ Workflow structure verified (12 steps)
✅ CodeQL security analysis passed (0 alerts)
✅ Build and pack tested locally
Benefits
Migration Notes
Fixes the requirement to build on all pushes and merges while intelligently managing releases and artifacts based on version changes.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.