@@ -19,6 +19,7 @@ resources:
19
19
type : github
20
20
name : xamarin/yaml-templates
21
21
endpoint : xamarin
22
+ ref : refs/heads/main
22
23
23
24
trigger :
24
25
branches :
77
78
solution : $(PathToCsproj)
78
79
configuration : Release
79
80
msbuildArguments : ' /restore /t:Build /p:ContinuousIntegrationBuild=true /p:Deterministic=false'
81
+ - task : CopyFiles@2
82
+ inputs :
83
+ Contents : ' SignList.xml'
84
+ TargetFolder : ' $(Build.ArtifactStagingDirectory)/nuget'
80
85
- task : MSBuild@1
81
86
displayName : Pack NuGets
82
87
inputs :
@@ -172,23 +177,7 @@ jobs:
172
177
configuration : Release
173
178
msbuildArguments : ' /t:Pack /p:PackageVersion=$(NugetPackageVersion) /p:PackageOutputPath="$(Build.ArtifactStagingDirectory)/nuget"'
174
179
175
- # only sign the packages when running on Windows, and using the private server which has the certificates
176
180
- ${{ if eq(variables['System.TeamProject'], 'devdiv') }} :
177
- - job : signing
178
- displayName : Signing NuGets
179
- dependsOn : build_windows
180
- pool :
181
- vmImage : ' windows-latest'
182
- condition : and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
183
- steps :
184
- # don't checkout code and sign the packages
185
- - checkout : none
186
- - template : sign-artifacts/jobs/v2.yml@internal-templates
187
- parameters :
188
- targetFolder : ' $(Build.ArtifactStagingDirectory)/signed'
189
- # publish the signed packages
190
- - task : PublishBuildArtifacts@1
191
- displayName : ' Publish Signed NuGets'
192
- inputs :
193
- artifactName : nuget-signed
194
- pathToPublish : ' $(Build.ArtifactStagingDirectory)/signed'
181
+ - template : sign-artifacts/jobs/v2.yml@internal-templates
182
+ parameters :
183
+ dependsOn : [ build_windows ]
0 commit comments