File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,11 +148,13 @@ jobs:
148148 if ("${{ env.NETSDK_SIGNKEY }}" -eq '') { Write-Error "NETSDK_SIGNKEY secret is required"; exit 1 }
149149 $bytes = [System.Convert]::FromBase64String("${{ env.NETSDK_SIGNKEY }}")
150150 [IO.File]::WriteAllBytes("signkey.snk", $bytes)
151+ $signPath = (Resolve-Path "signkey.snk").Path
152+ "SIGNKEY_PATH=$signPath" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
151153
152154 - name : Pack (Release, signed)
153155 shell : pwsh
154156 run : |
155- dotnet pack src/Couchbase.Analytics/Couchbase.Analytics.csproj -c Release /p:ContinuousIntegrationBuild=true /p:Version="${{ needs.validate-inputs.outputs.tag }}" /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /p:IncludeSource=true /p:SourceLinkCreate=true /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=signkey.snk
157+ dotnet pack src/Couchbase.Analytics/Couchbase.Analytics.csproj -c Release /p:ContinuousIntegrationBuild=true /p:Version="${{ needs.validate-inputs.outputs.tag }}" /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /p:IncludeSource=true /p:SourceLinkCreate=true /p:SignAssembly=true /p:AssemblyOriginatorKeyFile="$env:SIGNKEY_PATH"
156158
157159 - name : Upload Packages Artifact
158160 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments