diff options
author | Lluis Sanchez <llsan@microsoft.com> | 2022-01-28 17:39:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 17:39:34 +0300 |
commit | 276354348d6a4c9f14667cfcaa718f753a02ddc0 (patch) | |
tree | 7b269a349a8104e6189a227d859e3fefb340872e /azure-pipelines.yml | |
parent | 6f5e5ebcf6d9a72c5115660cea57159d43687fce (diff) |
Update azure-pipelines.yml for Azure Pipelines (#177)
Sign the generated NuGet packages
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r-- | azure-pipelines.yml | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 799b186..63e034c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -4,6 +4,8 @@ pool: variables: - name: BuildConfiguration value: Debug +- name: TeamName + value: Mono.Addins steps: @@ -14,6 +16,15 @@ steps: # script: '$(Build.SourcesDirectory)/bot-provisioning/provisionator-bootstrap.sh $(Build.SourcesDirectory)/bot-provisioning/dependencies.csx' # workingDirectory: '$(Build.SourcesDirectory)' +- task: MicroBuildSigningPlugin@3 + displayName: 'Install Signing Plugin' + inputs: + signType: 'Real' + azureSubscription: 'MicroBuild Signing Task (DevDiv)' + env: + SYSTEM_ACCESSTOKEN: $(System.AccessToken) + + - task: DotNetCoreCLI@2 displayName: 'Build solution Mono.Addins.sln' inputs: @@ -21,7 +32,7 @@ steps: arguments: '/p:Configuration=$(BuildConfiguration)' - task: DotNetCoreCLI@2 - displayName: 'Generating packages' + displayName: 'Generate packages' inputs: command: custom custom: pack @@ -45,6 +56,25 @@ steps: # testResultsFiles: 'Test/UnitTests/TestResult.xml' # failTaskOnFailedTests: true +- task: Bash@3 + displayName: 'Generate package file list' + inputs: + targetType: 'inline' + script: | + echo "<filelist>" > $(build.sourcesdirectory)/bin/files.xml + echo " <certificate certnumbers='401405'>" >> $(build.sourcesdirectory)/bin/files.xml + find $(build.sourcesdirectory)/bin -name "*.nupkg" -exec echo " <file srcpath='{}' dstpath='{}'></file>" \; >> $(build.sourcesdirectory)/bin/files.xml + echo " </certificate>" >> $(build.sourcesdirectory)/bin/files.xml + echo "</filelist>" >> $(build.sourcesdirectory)/bin/files.xml + workingDirectory: '$(build.sourcesdirectory)/bin' + +- task: DotNetCoreCLI@2 + displayName: 'Sign packages' + inputs: + command: 'custom' + custom: '$(MBSIGN_APPFOLDER)/ddsignfiles.dll' + arguments: '/filelist:$(build.sourcesdirectory)/bin/files.xml' + - task: CopyFiles@1 displayName: 'Copy Files to: $(build.artifactstagingdirectory)' inputs: |