diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 059b947..dde5cd9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,3 +53,6 @@ jobs: uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2 with: files: ./artifacts/* + # SemVer pre-release tags carry a hyphen (v1.0.0-rc.1); flag those so the GitHub + # Release matches how NuGet already treats them. Stable tags (v1.0.0) stay full releases. + prerelease: ${{ contains(github.ref_name, '-') }}