Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
+18
-13
@@ -35,17 +35,8 @@ stages:
|
|||||||
displayName: dotnet build
|
displayName: dotnet build
|
||||||
inputs:
|
inputs:
|
||||||
command: build
|
command: build
|
||||||
publishWebProjects: false
|
arguments: '-c $(buildConfiguration) -p:Version=$(build.version) -p:GeneratePackageOnBuild=false'
|
||||||
arguments: '-c $(buildConfiguration) -p:Version=$(build.version) -p:PackageOutputPath=$(Build.ArtifactStagingDirectory)\cp'
|
|
||||||
projects: 'src/Lithnet.CredentialProvider/Lithnet.CredentialProvider.csproj'
|
projects: 'src/Lithnet.CredentialProvider/Lithnet.CredentialProvider.csproj'
|
||||||
zipAfterPublish: false
|
|
||||||
|
|
||||||
- task: DotNetCoreCLI@2
|
|
||||||
inputs:
|
|
||||||
command: 'custom'
|
|
||||||
custom: 'tool'
|
|
||||||
arguments: 'update --global NuGetKeyVaultSignTool'
|
|
||||||
displayName: Install NugetKeyVaultSignTool
|
|
||||||
|
|
||||||
- task: DotNetCoreCLI@2
|
- task: DotNetCoreCLI@2
|
||||||
inputs:
|
inputs:
|
||||||
@@ -83,6 +74,22 @@ stages:
|
|||||||
failOnStderr: true
|
failOnStderr: true
|
||||||
showWarnings: true
|
showWarnings: true
|
||||||
|
|
||||||
|
- task: DotNetCoreCLI@2
|
||||||
|
displayName: dotnet pack
|
||||||
|
inputs:
|
||||||
|
command: pack
|
||||||
|
nobuild: true
|
||||||
|
includesymbols: true
|
||||||
|
arguments: '-p:PackageOutputPath=$(Build.ArtifactStagingDirectory)\cp'
|
||||||
|
projects: 'src/Lithnet.CredentialProvider/Lithnet.CredentialProvider.csproj'
|
||||||
|
|
||||||
|
- task: DotNetCoreCLI@2
|
||||||
|
inputs:
|
||||||
|
command: 'custom'
|
||||||
|
custom: 'tool'
|
||||||
|
arguments: 'update --global NuGetKeyVaultSignTool'
|
||||||
|
displayName: Install NugetKeyVaultSignTool
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: 'Sign Nuget package'
|
displayName: 'Sign Nuget package'
|
||||||
inputs:
|
inputs:
|
||||||
@@ -163,10 +170,8 @@ stages:
|
|||||||
displayName: dotnet build
|
displayName: dotnet build
|
||||||
inputs:
|
inputs:
|
||||||
command: build
|
command: build
|
||||||
publishWebProjects: false
|
|
||||||
arguments: '-c $(buildConfiguration) -p:Version=$(build.version) --output "$(Build.ArtifactStagingDirectory)\ps"'
|
arguments: '-c $(buildConfiguration) -p:Version=$(build.version) --output "$(Build.ArtifactStagingDirectory)\ps"'
|
||||||
projects: 'src/Lithnet.CredentialProvider.Management/Lithnet.CredentialProvider.Management.csproj'
|
projects: 'src/Lithnet.CredentialProvider.Management/Lithnet.CredentialProvider.Management.csproj'
|
||||||
zipAfterPublish: false
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: 'Update manifest version'
|
displayName: 'Update manifest version'
|
||||||
@@ -238,7 +243,7 @@ stages:
|
|||||||
displayName: 'Publish nuget package to public feed'
|
displayName: 'Publish nuget package to public feed'
|
||||||
inputs:
|
inputs:
|
||||||
command: 'push'
|
command: 'push'
|
||||||
packagesToPush: '$(Pipeline.Workspace)/**/*.nupkg'
|
packagesToPush: '$(Pipeline.Workspace)/cp/*.nupkg'
|
||||||
nuGetFeedType: 'external'
|
nuGetFeedType: 'external'
|
||||||
publishFeedCredentials: 'WindowsCredentialProviderNuget'
|
publishFeedCredentials: 'WindowsCredentialProviderNuget'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user