Skip to content

Commit 5bfedc9

Browse files
authored
Get path of signkey and pass to dotnet pack
1 parent 26088c8 commit 5bfedc9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)