Skip to content

Commit 283a202

Browse files
bobbyg603claude
andcommitted
Fix publish workflow: use pwsh for glob expansion and dotnet nuget for cloud HSM signing
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c370965 commit 283a202

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ jobs:
5656
SM_CLIENT_CERT_PASSWORD: ${{ secrets.SM_CLIENT_CERT_PASSWORD }}
5757

5858
- name: Sign NuGet package
59-
run: nuget sign ./nupkg/*.nupkg -Timestamper http://timestamp.digicert.com -CertificateFingerprint ${{ secrets.SM_CODE_SIGNING_CERT_SHA1_HASH }} -HashAlgorithm SHA256 -Verbosity detailed -Overwrite
60-
shell: cmd
59+
run: Get-ChildItem ./nupkg/*.nupkg | ForEach-Object { dotnet nuget sign $_.FullName --timestamper http://timestamp.digicert.com --certificate-fingerprint ${{ secrets.SM_CODE_SIGNING_CERT_SHA1_HASH }} --hash-algorithm SHA256 --verbosity detailed --overwrite }
60+
shell: pwsh
6161

6262
- name: Verify signature
63-
run: nuget verify -All ./nupkg/*.nupkg
64-
shell: cmd
63+
run: Get-ChildItem ./nupkg/*.nupkg | ForEach-Object { dotnet nuget verify --all $_.FullName }
64+
shell: pwsh
6565

6666
- name: Push to NuGet
6767
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)