Skip to content

Commit 3f77a7a

Browse files
committed
Use new sign tool (#2167)
1 parent 1cfc646 commit 3f77a7a

File tree

3 files changed

+72
-36
lines changed

3 files changed

+72
-36
lines changed

azure-pipelines.asyncrx.yml

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,23 +93,34 @@ stages:
9393
runOnce:
9494
deploy:
9595
steps:
96+
97+
- task: UseDotNet@2
98+
displayName: Use .NET 8.0.x SDK
99+
inputs:
100+
version: 8.0.x
101+
performMultiLevelLookup: true
102+
96103
- task: DotNetCoreCLI@2
104+
displayName: Install SignTool tool
97105
inputs:
98106
command: custom
99107
custom: tool
100-
arguments: install --tool-path . SignClient
101-
displayName: Install SignTool tool
108+
arguments: install --tool-path . sign --version 0.9.1-beta.24406.1
102109

103-
- pwsh: |
104-
.\SignClient "Sign" `
105-
--baseDirectory "$(Pipeline.Workspace)\BuildPackages" `
106-
--input "**/*.nupkg" `
107-
--config "$(Pipeline.Workspace)\config\signclient.json" `
108-
--user "$(SignClientUser)" `
109-
--secret "$(SignClientSecret)" `
110-
--name "Rx.NET" `
111-
--description "Rx.NET" `
112-
--descriptionUrl "https://github.com/dotnet/reactive"
110+
- task: AzureCLI@2
111+
inputs:
112+
azureSubscription: 'Rx.NET Sign Service Connection'
113+
scriptType: pscore
114+
scriptLocation: inlineScript
115+
inlineScript: |
116+
.\sign code azure-key-vault `
117+
"**/*.nupkg" `
118+
--base-directory "$(Pipeline.Workspace)\BuildPackages" `
119+
--publisher-name "Reactive Extensions for .NET (.NET Foundation)" `
120+
--description "AsyncRx.NET" `
121+
--description-url "https://github.com/dotnet/reactive" `
122+
--azure-key-vault-url "$(SignKeyVaultUrl)" `
123+
--azure-key-vault-certificate "$(SignKeyVaultCertificateName)"
113124
displayName: Sign packages
114125

115126
- publish: $(Pipeline.Workspace)/BuildPackages

azure-pipelines.ix.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -112,24 +112,36 @@ stages:
112112
runOnce:
113113
deploy:
114114
steps:
115+
116+
- task: UseDotNet@2
117+
displayName: Use .NET 8.0.x SDK
118+
inputs:
119+
version: 8.0.x
120+
performMultiLevelLookup: true
121+
115122
- task: DotNetCoreCLI@2
123+
displayName: Install SignTool tool
116124
inputs:
117125
command: custom
118126
custom: tool
119-
arguments: install --tool-path . SignClient
120-
displayName: Install SignTool tool
127+
arguments: install --tool-path . sign --version 0.9.1-beta.24406.1
121128

122-
- pwsh: |
123-
.\SignClient "Sign" `
124-
--baseDirectory "$(Pipeline.Workspace)\BuildPackages" `
125-
--input "**/*.nupkg" `
126-
--config "$(Pipeline.Workspace)\config\signclient.json" `
127-
--user "$(SignClientUser)" `
128-
--secret "$(SignClientSecret)" `
129-
--name "Ix.NET" `
130-
--description "Ix.NET" `
131-
--descriptionUrl "https://github.com/dotnet/reactive"
129+
- task: AzureCLI@2
130+
inputs:
131+
azureSubscription: 'Rx.NET Sign Service Connection'
132+
scriptType: pscore
133+
scriptLocation: inlineScript
134+
inlineScript: |
135+
.\sign code azure-key-vault `
136+
"**/*.nupkg" `
137+
--base-directory "$(Pipeline.Workspace)\BuildPackages" `
138+
--publisher-name "Reactive Extensions for .NET (.NET Foundation)" `
139+
--description "Ix.NET" `
140+
--description-url "https://github.com/dotnet/reactive" `
141+
--azure-key-vault-url "$(SignKeyVaultUrl)" `
142+
--azure-key-vault-certificate "$(SignKeyVaultCertificateName)"
132143
displayName: Sign packages
144+
133145
- publish: $(Pipeline.Workspace)/BuildPackages
134146
displayName: Publish Signed Packages
135147
artifact: SignedPackages

azure-pipelines.rx.yml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -264,23 +264,36 @@ stages:
264264
runOnce:
265265
deploy:
266266
steps:
267+
268+
- task: UseDotNet@2
269+
displayName: Use .NET 8.0.x SDK
270+
inputs:
271+
version: 8.0.x
272+
performMultiLevelLookup: true
273+
267274
- task: DotNetCoreCLI@2
275+
displayName: Install SignTool tool
268276
inputs:
269277
command: custom
270278
custom: tool
271-
arguments: install --tool-path . SignClient
272-
displayName: Install SignTool tool
279+
arguments: install --tool-path . sign --version 0.9.1-beta.24406.1
280+
281+
# Run the signing command
273282

274-
- pwsh: |
275-
.\SignClient "Sign" `
276-
--baseDirectory "$(Pipeline.Workspace)\BuildPackages" `
277-
--input "**/*.nupkg" `
278-
--config "$(Pipeline.Workspace)\config\signclient.json" `
279-
--user "$(SignClientUser)" `
280-
--secret "$(SignClientSecret)" `
281-
--name "Rx.NET" `
282-
--description "Rx.NET" `
283-
--descriptionUrl "https://github.com/dotnet/reactive"
283+
- task: AzureCLI@2
284+
inputs:
285+
azureSubscription: 'Rx.NET Sign Service Connection'
286+
scriptType: pscore
287+
scriptLocation: inlineScript
288+
inlineScript: |
289+
.\sign code azure-key-vault `
290+
"**/*.nupkg" `
291+
--base-directory "$(Pipeline.Workspace)\BuildPackages" `
292+
--publisher-name "Reactive Extensions for .NET (.NET Foundation)" `
293+
--description "Rx.NET" `
294+
--description-url "https://github.com/dotnet/reactive" `
295+
--azure-key-vault-url "$(SignKeyVaultUrl)" `
296+
--azure-key-vault-certificate "$(SignKeyVaultCertificateName)"
284297
displayName: Sign packages
285298

286299
- publish: $(Pipeline.Workspace)/BuildPackages

0 commit comments

Comments
 (0)