From c96b5ca2a66d1558e94d4774daf2bf44e8fac01a Mon Sep 17 00:00:00 2001 From: Jozef Izso Date: Sat, 21 Feb 2026 13:05:36 +0100 Subject: [PATCH 1/2] Use `BUILD_SIGN_RELEASE` env variable to dynamically configure release signing for build environment --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bed6b498f..c07c5bb7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,7 @@ jobs: DOTNET_NOLOGO: 1 DOTNET_CLI_TELEMETRY_OPTOUT: 1 DOTNET_GENERATE_ASPNET_CERTIFICATE: 0 + BUILD_SIGN_RELEASE: '${{ vars.BUILD_SIGN_RELEASE }}' ContinuousIntegrationBuild: true RestoreLockedMode: true RepositoryBranch: '${{ github.ref_name }}' From a15cf657cf29aa5a8b40e2330d5138366bb245a7 Mon Sep 17 00:00:00 2001 From: Jozef Izso Date: Sat, 21 Feb 2026 13:11:03 +0100 Subject: [PATCH 2/2] Improve documentation for publishing signed nuget packages --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c07c5bb7a..6d3dd1db7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -160,6 +160,7 @@ jobs: - name: Archive code signing certificate if: success() && matrix.configuration == 'Release' + id: certificate_artifact uses: actions/upload-artifact@v6 with: name: certificate @@ -168,9 +169,12 @@ jobs: - name: Release documentation if: matrix.configuration == 'Release' run: | + $certUrl = '${{ steps.certificate_artifact.outputs.artifact-url }}' 'To release the NuGet package, upload the signing certificate to NuGet Gallery via Account Settings: . ' >> $env:GITHUB_STEP_SUMMARY 'See the `certificate` artifact for the signing certificate file.' >> $env:GITHUB_STEP_SUMMARY '' >> $env:GITHUB_STEP_SUMMARY + 'Download the [certiticate file]($certUrl).' >> $env:GITHUB_STEP_SUMMARY + '' >> $env:GITHUB_STEP_SUMMARY 'Approve the `publish` job deployment to the `nuget-gallery` environment when the certificate was added to NuGet Gallery.' >> $env:GITHUB_STEP_SUMMARY publish: