From 43dfc2d141aa845e2490a5a64d40c368cf35d29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Herceg?= Date: Sun, 22 Oct 2023 16:47:32 +0200 Subject: [PATCH] Fixed command-line syntax when calling the sign client --- ci/scripts/Publish-NuGetPackages.ps1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ci/scripts/Publish-NuGetPackages.ps1 b/ci/scripts/Publish-NuGetPackages.ps1 index 9bd7783f7f..dc152f3780 100644 --- a/ci/scripts/Publish-NuGetPackages.ps1 +++ b/ci/scripts/Publish-NuGetPackages.ps1 @@ -89,10 +89,10 @@ function Set-AllPackageSignatures { if ($signatureType -eq "DotNetFoundation") { dotnet sign code azure-key-vault ` "$package" ` - --baseDirectory "$root/artifacts/packages" ` + --base-directory "$root/artifacts/packages" ` --publisher-name "DotVVM" ` --description "$("$packageName" + " " + $env:DOTVVM_VERSION)" ` - --descriptionUrl "https://github.com/riganti/dotvvm" ` + --description-url "https://github.com/riganti/dotvvm" ` --azure-key-vault-url "$dnfUrl" ` --azure-key-vault-client-id "$dnfClientId" ` --azure-key-vault-tenant-id "$dnfTenantId" ` @@ -114,6 +114,9 @@ function Set-AllPackageSignatures { else { throw "$signatureType is not a valid signature type" } + if ($LastExitCode -ne 0) { + throw "Signing failed" + } } } finally {