Work CI-CD
Add new step in WIN32 build to sign nanoCLR EXE before packaging with nuget.
***NO_CI***
@@ -358,6 +358,29 @@ jobs:
msbuildArgs: '/p:PublicRelease=true'
configuration: 'Release'
+ - task: DotNetCoreCLI@2
+ displayName: Install SignTool tool
+ condition: and( succeeded(), eq(variables['System.PullRequest.PullRequestId'], '') )
+ inputs:
+ command: custom
+ custom: tool
+ arguments: install --tool-path . SignClient
+
+ - pwsh: |
+ .\SignClient "Sign" `
+ --baseDirectory "$(Build.Repository.LocalPath)\build\bin\Release" `
+ --input "**/nanoFramework.nanoCLR.exe" `
+ --config "$(Build.Repository.LocalPath)\config\SignClient.json" `
+ --filelist "$(Build.Repository.LocalPath)\config\filelist.txt" `
+ --user "$(SignClientUser)" `
+ --secret '$(SignClientSecret)' `
+ --name "nanoFramework.nanoCLR.Win32" `
+ --description "nanoFramework.nanoCLR.Win32" `
+ --descriptionUrl "https://github.com/$env:Build_Repository_Name"
+ displayName: Sign nanoCLR WIN32 EXE
+ continueOnError: true
+ condition: and( succeeded(), eq(variables['System.PullRequest.PullRequestId'], '') )
+
- task: NuGetCommand@2
condition: succeeded()
displayName: Pack managed helpers NuGet
@@ -385,14 +408,6 @@ jobs:
TargetFolder: '$(Build.ArtifactStagingDirectory)\$(TargetPublishName)'
flattenFolders: true
- - task: DotNetCoreCLI@2
- displayName: Install SignTool tool
- condition: and( succeeded(), eq(variables['System.PullRequest.PullRequestId'], '') )
- inputs:
- command: custom
- custom: tool
- arguments: install --tool-path . SignClient
-
- pwsh: |
.\SignClient "Sign" `
--baseDirectory "$(Build.ArtifactStagingDirectory)" `
@@ -401,8 +416,8 @@ jobs:
--filelist "$(Build.Repository.LocalPath)\config\filelist.txt" `
--user "$(SignClientUser)" `
--secret '$(SignClientSecret)' `
- --name "nanoFramework.nanoCLR.Win32" `
- --description "nanoFramework.nanoCLR.Win32" `
+ --name "nanoFramework.nanoCLR.Win32 NuGet" `
+ --description "nanoFramework.nanoCLR.Win32 NuGet" `
--descriptionUrl "https://github.com/$env:Build_Repository_Name"
displayName: Sign packages
continueOnError: true
