From 43fc0348d8ca5dacba9e0dfe13c44b1d751148fd Mon Sep 17 00:00:00 2001 From: Zdenek Strach Date: Tue, 5 Mar 2024 14:53:09 +0100 Subject: [PATCH] KX-11391 - SignFile replaced with AzureSignTool --- .azuredevops/pipelines/build-and-release.yml | 12 +++++++++++- .config/dotnet-tools.json | 12 ++++++++++++ Directory.Build.props | 1 + Directory.build.targets | 2 +- 4 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .config/dotnet-tools.json diff --git a/.azuredevops/pipelines/build-and-release.yml b/.azuredevops/pipelines/build-and-release.yml index 3ab8d61c..afa9457a 100644 --- a/.azuredevops/pipelines/build-and-release.yml +++ b/.azuredevops/pipelines/build-and-release.yml @@ -31,7 +31,7 @@ stages: - Agent.Name -equals ${{ parameters.AgentName }} variables: - - group: 14.0 Authenticode signature parameters + - group: Code Sign KV Auth - name: Configuration value: Release @@ -45,6 +45,14 @@ stages: inputs: packageType: sdk useGlobalJson: true + + - task: DotNetCoreCLI@2 + displayName: Restore dotnet tools + inputs: + command: custom + custom: tool + arguments: restore + workingDirectory: $(System.DefaultWorkingDirectory) - task: DotNetCoreCLI@2 displayName: Restore dependencies @@ -61,6 +69,8 @@ stages: projects: ${{ variables.ProjectPath }} configuration: ${{ variables.Configuration }} arguments: --no-restore + env: + AuthenticodeClientSecret: $(AuthenticodeClientSecret) - task: DotNetCoreCLI@2 displayName: Create NuGet package diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 00000000..708a45c4 --- /dev/null +++ b/.config/dotnet-tools.json @@ -0,0 +1,12 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "azuresigntool": { + "version": "4.0.1", + "commands": [ + "azuresigntool" + ] + } + } +} \ No newline at end of file diff --git a/Directory.Build.props b/Directory.Build.props index aac369d4..b9b66269 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -33,6 +33,7 @@ Kentico.Xperience.RepoTemplate false + http://timestamp.digicert.com diff --git a/Directory.build.targets b/Directory.build.targets index 89c3c2e9..70360ed7 100644 --- a/Directory.build.targets +++ b/Directory.build.targets @@ -9,6 +9,6 @@ - + \ No newline at end of file