Skip to content

Commit 5c6d808

Browse files
committed
release: use dotnet tool install to get sign CLI
Use the `dotnet tool install` command to acquire the code signing tool, rather than rely on our Azure blob store.
1 parent f8c2c34 commit 5c6d808

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -349,19 +349,13 @@ jobs:
349349
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
350350
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
351351

352-
- name: Download/extract Sign CLI tool
353-
env:
354-
AST: ${{ secrets.AZURE_STORAGE_ACCOUNT }}
355-
ASC: ${{ secrets.AZURE_STORAGE_CONTAINER }}
356-
SCT: 'Sign.Cli-alpha.zip'
352+
- name: Install sign CLI tool
357353
run: |
358-
az storage blob download --file sign-cli.zip --auth-mode login `
359-
--account-name $env:AST --container-name $env:ASC --name $env:SCT
360-
Expand-Archive -Path sign-cli.zip -DestinationPath .\sign-cli
354+
dotnet tool install -g --version 0.9.1-beta.24325.5
361355
362356
- name: Sign payload
363357
run: |
364-
./sign-cli/sign.exe code trusted-signing payload/* `
358+
sign.exe code trusted-signing payload/* `
365359
-tse https://wus2.codesigning.azure.net/ `
366360
-tsa git-fundamentals-signing `
367361
-tscp git-fundamentals-windows-signing `
@@ -433,19 +427,13 @@ jobs:
433427
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
434428
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
435429

436-
- name: Download/extract Sign CLI tool
437-
env:
438-
AST: ${{ secrets.AZURE_STORAGE_ACCOUNT }}
439-
ASC: ${{ secrets.AZURE_STORAGE_CONTAINER }}
440-
SCT: 'Sign.Cli-alpha.zip'
430+
- name: Install sign CLI tool
441431
run: |
442-
az storage blob download --file sign-cli.zip --auth-mode login `
443-
--account-name $env:AST --container-name $env:ASC --name $env:SCT
444-
Expand-Archive -Path sign-cli.zip -DestinationPath .\sign-cli
432+
dotnet tool install -g --version 0.9.1-beta.24325.5
445433
446434
- name: Sign package
447435
run: |
448-
./sign-cli/sign.exe code trusted-signing nupkg/* `
436+
sign.exe code trusted-signing nupkg/* `
449437
-tse https://wus2.codesigning.azure.net/ `
450438
-tsa git-fundamentals-signing `
451439
-tscp git-fundamentals-windows-signing `

0 commit comments

Comments
 (0)