Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit fa93de1

Browse files
mattleibowjfversluisjsuarezruiz
authoredDec 15, 2020
Update azure-pipelines.yml (#682)
* Update azure-pipelines.yml * Update azure-pipelines.yml * Create SignList.xml * Update azure-pipelines.yml for Azure Pipelines * Update azure-pipelines.yml Co-authored-by: Gerald Versluis <[email protected]> Co-authored-by: Javier Suárez <[email protected]>
1 parent 877d702 commit fa93de1

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed
 

‎SignList.xml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<ItemGroup>
3+
<FirstParty Include="Xamarin.*.dll" />
4+
</ItemGroup>
5+
6+
<ItemGroup>
7+
<!-- <ThirdParty Include="Newtonsoft.Json.dll" /> -->
8+
</ItemGroup>
9+
10+
<ItemGroup>
11+
<!-- <Skip Include="System.*.dll" /> -->
12+
</ItemGroup>
13+
</Project>

‎azure-pipelines.yml

+8-19
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ resources:
1919
type: github
2020
name: xamarin/yaml-templates
2121
endpoint: xamarin
22+
ref: refs/heads/main
2223

2324
trigger:
2425
branches:
@@ -77,6 +78,10 @@ jobs:
7778
solution: $(PathToCsproj)
7879
configuration: Release
7980
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'
8085
- task: MSBuild@1
8186
displayName: Pack NuGets
8287
inputs:
@@ -172,23 +177,7 @@ jobs:
172177
configuration: Release
173178
msbuildArguments: '/t:Pack /p:PackageVersion=$(NugetPackageVersion) /p:PackageOutputPath="$(Build.ArtifactStagingDirectory)/nuget"'
174179

175-
# only sign the packages when running on Windows, and using the private server which has the certificates
176180
- ${{ 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

Comments
 (0)
This repository has been archived.