-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
56 lines (48 loc) · 1.71 KB
/
azure-pipelines.yml
File metadata and controls
56 lines (48 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: $(major).$(minor).$(revision)$(Rev:.r)
trigger:
- main
- develop
variables:
solutionFile: 'Gibraltar.PostHog.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
group: code-signing
major: 1
minor: 0
revision: 1
fileVersion: '$(Build.BuildNumber)'
jobs:
- job: build
pool:
vmImage: 'windows-latest'
steps:
- task: DownloadSecureFile@1
name: loupeAgentSigningKey
inputs:
secureFile: 'GibraltarSoftwareCCC.pfx'
- task: DotNetCoreCLI@2
displayName: 'Build Solution'
inputs:
command: 'build'
projects: '**/*.sln'
arguments: '--configuration $(buildConfiguration) /p:Version=$(Build.BuildNumber)'
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)/src'
contents: '**\?(*.nupkg|*.snupkg)'
flattenFolders: true
targetFolder: '$(Build.ArtifactStagingDirectory)/packages'
- task: NuGetCommand@2
displayName: 'Sign NuGet Packages'
inputs:
command: 'custom'
arguments: sign $(Build.ArtifactStagingDirectory)\packages\*.nupkg -CertificatePath $(Agent.TempDirectory)/GibraltarSoftwareCCC.pfx -CertificatePassword $(codeSigningCertPassword) -Timestamper http://timestamp.comodoca.com -Verbosity detailed
- task: NuGetCommand@2
displayName: 'Sign NuGet Symbol Packages'
inputs:
command: 'custom'
arguments: sign $(Build.ArtifactStagingDirectory)\packages\*.snupkg -CertificatePath $(Agent.TempDirectory)/GibraltarSoftwareCCC.pfx -CertificatePassword $(codeSigningCertPassword) -Timestamper http://timestamp.comodoca.com -Verbosity detailed
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: '$(Build.ArtifactStagingDirectory)/packages'
artifactName: packages