diff --git a/azure-pipelines.asyncrx.yml b/azure-pipelines.asyncrx.yml index 6d53f3856..5ff9cbb58 100644 --- a/azure-pipelines.asyncrx.yml +++ b/azure-pipelines.asyncrx.yml @@ -93,23 +93,34 @@ stages: runOnce: deploy: steps: + + - task: UseDotNet@2 + displayName: Use .NET 8.0.x SDK + inputs: + version: 8.0.x + performMultiLevelLookup: true + - task: DotNetCoreCLI@2 + displayName: Install SignTool tool inputs: command: custom custom: tool - arguments: install --tool-path . SignClient - displayName: Install SignTool tool + arguments: install --tool-path . sign --version 0.9.1-beta.24406.1 - - pwsh: | - .\SignClient "Sign" ` - --baseDirectory "$(Pipeline.Workspace)\BuildPackages" ` - --input "**/*.nupkg" ` - --config "$(Pipeline.Workspace)\config\signclient.json" ` - --user "$(SignClientUser)" ` - --secret "$(SignClientSecret)" ` - --name "Rx.NET" ` - --description "Rx.NET" ` - --descriptionUrl "https://github.com/dotnet/reactive" + - task: AzureCLI@2 + inputs: + azureSubscription: 'Rx.NET Sign Service Connection' + scriptType: pscore + scriptLocation: inlineScript + inlineScript: | + .\sign code azure-key-vault ` + "**/*.nupkg" ` + --base-directory "$(Pipeline.Workspace)\BuildPackages" ` + --publisher-name "Reactive Extensions for .NET (.NET Foundation)" ` + --description "AsyncRx.NET" ` + --description-url "https://github.com/dotnet/reactive" ` + --azure-key-vault-url "$(SignKeyVaultUrl)" ` + --azure-key-vault-certificate "$(SignKeyVaultCertificateName)" displayName: Sign packages - publish: $(Pipeline.Workspace)/BuildPackages diff --git a/azure-pipelines.ix.yml b/azure-pipelines.ix.yml index dfff79bab..013fcb198 100644 --- a/azure-pipelines.ix.yml +++ b/azure-pipelines.ix.yml @@ -128,24 +128,36 @@ stages: runOnce: deploy: steps: + + - task: UseDotNet@2 + displayName: Use .NET 8.0.x SDK + inputs: + version: 8.0.x + performMultiLevelLookup: true + - task: DotNetCoreCLI@2 + displayName: Install SignTool tool inputs: command: custom custom: tool - arguments: install --tool-path . SignClient - displayName: Install SignTool tool + arguments: install --tool-path . sign --version 0.9.1-beta.24406.1 - - pwsh: | - .\SignClient "Sign" ` - --baseDirectory "$(Pipeline.Workspace)\BuildPackages" ` - --input "**/*.nupkg" ` - --config "$(Pipeline.Workspace)\config\signclient.json" ` - --user "$(SignClientUser)" ` - --secret "$(SignClientSecret)" ` - --name "Ix.NET" ` - --description "Ix.NET" ` - --descriptionUrl "https://github.com/dotnet/reactive" + - task: AzureCLI@2 + inputs: + azureSubscription: 'Rx.NET Sign Service Connection' + scriptType: pscore + scriptLocation: inlineScript + inlineScript: | + .\sign code azure-key-vault ` + "**/*.nupkg" ` + --base-directory "$(Pipeline.Workspace)\BuildPackages" ` + --publisher-name "Reactive Extensions for .NET (.NET Foundation)" ` + --description "Ix.NET" ` + --description-url "https://github.com/dotnet/reactive" ` + --azure-key-vault-url "$(SignKeyVaultUrl)" ` + --azure-key-vault-certificate "$(SignKeyVaultCertificateName)" displayName: Sign packages + - publish: $(Pipeline.Workspace)/BuildPackages displayName: Publish Signed Packages artifact: SignedPackages diff --git a/azure-pipelines.rx.yml b/azure-pipelines.rx.yml index 4b1bb9c18..db27081e0 100644 --- a/azure-pipelines.rx.yml +++ b/azure-pipelines.rx.yml @@ -264,23 +264,36 @@ stages: runOnce: deploy: steps: + + - task: UseDotNet@2 + displayName: Use .NET 8.0.x SDK + inputs: + version: 8.0.x + performMultiLevelLookup: true + - task: DotNetCoreCLI@2 + displayName: Install SignTool tool inputs: command: custom custom: tool - arguments: install --tool-path . SignClient - displayName: Install SignTool tool + arguments: install --tool-path . sign --version 0.9.1-beta.24406.1 + + # Run the signing command - - pwsh: | - .\SignClient "Sign" ` - --baseDirectory "$(Pipeline.Workspace)\BuildPackages" ` - --input "**/*.nupkg" ` - --config "$(Pipeline.Workspace)\config\signclient.json" ` - --user "$(SignClientUser)" ` - --secret "$(SignClientSecret)" ` - --name "Rx.NET" ` - --description "Rx.NET" ` - --descriptionUrl "https://github.com/dotnet/reactive" + - task: AzureCLI@2 + inputs: + azureSubscription: 'Rx.NET Sign Service Connection' + scriptType: pscore + scriptLocation: inlineScript + inlineScript: | + .\sign code azure-key-vault ` + "**/*.nupkg" ` + --base-directory "$(Pipeline.Workspace)\BuildPackages" ` + --publisher-name "Reactive Extensions for .NET (.NET Foundation)" ` + --description "Rx.NET" ` + --description-url "https://github.com/dotnet/reactive" ` + --azure-key-vault-url "$(SignKeyVaultUrl)" ` + --azure-key-vault-certificate "$(SignKeyVaultCertificateName)" displayName: Sign packages - publish: $(Pipeline.Workspace)/BuildPackages