File tree Expand file tree Collapse file tree 2 files changed +11
-19
lines changed Expand file tree Collapse file tree 2 files changed +11
-19
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ variables:
3535 Solution : asp.sln
3636 BuildConfiguration : Release
3737 VersionSuffix : ' '
38- SkipSigning : false
3938
4039steps :
4140- template : build/steps-ci.yml
4847 parameters :
4948 solution : ${{ variables.Solution }}
5049 configuration : ${{ variables.BuildConfiguration }}
51- versionSuffix : ${{ variables.VersionSuffix }}
52- skipSigning : ${{ variables.SkipSigning }}
50+ versionSuffix : ${{ variables.VersionSuffix }}
Original file line number Diff line number Diff line change @@ -8,9 +8,6 @@ parameters:
88- name : versionSuffix
99 type : string
1010 default : ' '
11- - name : skipSigning
12- type : boolean
13- default : false
1411
1512steps :
1613- task : DotNetCoreCLI@2
@@ -23,17 +20,14 @@ steps:
2320 outputDir : $(Build.ArtifactStagingDirectory)/packages
2421 noBuild : true
2522
26- - task : DotNetCoreCLI@2
23+ - script : dotnet tool restore
2724 displayName : Restore Tools
28- inputs :
29- command : custom
30- custom : tool restore
3125
32- - task : DotNetCoreCLI@2
26+ - script : >
27+ dotnet z -c
28+ $(Build.ArtifactStagingDirectory)/packages
29+ $(Build.ArtifactStagingDirectory)/packages.zip
3330 displayName : Package artifacts for signing
34- inputs :
35- command : custom
36- custom : ' z -c $(Build.ArtifactStagingDirectory)/packages $(Build.ArtifactStagingDirectory)/packages.zip'
3731
3832- script : >
3933 dotnet signclient sign
@@ -45,13 +39,13 @@ steps:
4539 --description "Adds versioning semantics to APIs build with ASP.NET"
4640 --descriptionUrl "https://github.com/dotnet/aspnet-api-versioning"
4741 displayName : Sign Artifacts
48- condition : ${{ not(parameters.skipSigning) }}
42+ condition : false
4943
50- - task : DotNetCoreCLI@2
44+ - script : >
45+ dotnet z -e
46+ $(Build.ArtifactStagingDirectory)/packages.zip
47+ $(Build.ArtifactStagingDirectory)/signed-packages
5148 displayName : Extract Signed Artifacts
52- inputs :
53- command : custom
54- custom : ' z -e $(Build.ArtifactStagingDirectory)/packages.zip $(Build.ArtifactStagingDirectory)/signed-packages'
5549
5650- task : PublishBuildArtifacts@1
5751 displayName : Publish package artifacts
You can’t perform that action at this time.
0 commit comments