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

Commit

Permalink
Update azure-pipelines.yml (#682)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Dec 15, 2020
1 parent 877d702 commit fa93de1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
13 changes: 13 additions & 0 deletions SignList.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<FirstParty Include="Xamarin.*.dll" />
</ItemGroup>

<ItemGroup>
<!-- <ThirdParty Include="Newtonsoft.Json.dll" /> -->
</ItemGroup>

<ItemGroup>
<!-- <Skip Include="System.*.dll" /> -->
</ItemGroup>
</Project>
27 changes: 8 additions & 19 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ resources:
type: github
name: xamarin/yaml-templates
endpoint: xamarin
ref: refs/heads/main

trigger:
branches:
Expand Down Expand Up @@ -77,6 +78,10 @@ jobs:
solution: $(PathToCsproj)
configuration: Release
msbuildArguments: '/restore /t:Build /p:ContinuousIntegrationBuild=true /p:Deterministic=false'
- task: CopyFiles@2
inputs:
Contents: 'SignList.xml'
TargetFolder: '$(Build.ArtifactStagingDirectory)/nuget'
- task: MSBuild@1
displayName: Pack NuGets
inputs:
Expand Down Expand Up @@ -172,23 +177,7 @@ jobs:
configuration: Release
msbuildArguments: '/t:Pack /p:PackageVersion=$(NugetPackageVersion) /p:PackageOutputPath="$(Build.ArtifactStagingDirectory)/nuget"'

# only sign the packages when running on Windows, and using the private server which has the certificates
- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
- job: signing
displayName: Signing NuGets
dependsOn: build_windows
pool:
vmImage: 'windows-latest'
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
steps:
# don't checkout code and sign the packages
- checkout: none
- template: sign-artifacts/jobs/v2.yml@internal-templates
parameters:
targetFolder: '$(Build.ArtifactStagingDirectory)/signed'
# publish the signed packages
- task: PublishBuildArtifacts@1
displayName: 'Publish Signed NuGets'
inputs:
artifactName: nuget-signed
pathToPublish: '$(Build.ArtifactStagingDirectory)/signed'
- template: sign-artifacts/jobs/v2.yml@internal-templates
parameters:
dependsOn: [ build_windows ]

0 comments on commit fa93de1

Please sign in to comment.