Skip to content

Commit 627efb0

Browse files
committed
Converting to Powershell
1 parent b0bd5d0 commit 627efb0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,10 @@ jobs:
6464
run: ./Build.ps1
6565
shell: pwsh
6666
- name: Sign packages
67-
if: github.event == 'push'
6867
run: |-
69-
for file in artifacts/*.nupkg; do
70-
dotnet NuGetKeyVaultSignTool sign "$file" --file-digest sha256 --timestamp-rfc3161 http://timestamp.digicert.com --azure-key-vault-managed-identity --azure-key-vault-url ${{ secrets.AZURE_KEYVAULT_URI }} --azure-key-vault-certificate ${{ secrets.CODESIGN_CERT_NAME }}
71-
done
68+
foreach ($f in Get-ChildItem "./artifacts" -Filter "*.nupkg") {
69+
dotnet NuGetKeyVaultSignTool sign $f.FullName --file-digest sha256 --timestamp-rfc3161 http://timestamp.digicert.com --azure-key-vault-managed-identity --azure-key-vault-url ${{ secrets.AZURE_KEYVAULT_URI }} --azure-key-vault-certificate ${{ secrets.CODESIGN_CERT_NAME }}
70+
}
7271
- name: Push to MyGet
7372
if: github.ref == 'refs/heads/main'
7473
env:

0 commit comments

Comments
 (0)