-
Notifications
You must be signed in to change notification settings - Fork 8
/
azure-pipelines.yml
60 lines (60 loc) · 2.17 KB
/
azure-pipelines.yml
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
57
58
59
60
name: $(GITVERSION_FullSemVer)
pool:
vmImage: 'windows-latest'
pr: none
trigger:
batch: true
branches:
include:
- master
stages:
- template: templates/include-build-stage.yml
- template: templates/include-solution-checker-stage.yml
parameters:
serviceConnection: 'Developer Instance'
- template: templates/include-deploy-stage.yml
parameters:
environment: 'test'
resetServiceConnection: 'Developer Instance (adminuser)'
deployServiceConnection: 'Developer Instance'
environmentVariableGroup: 'Environment - Test'
- template: templates/include-test-stage.yml
parameters:
environmentVariableGroup: 'Environment - Test'
- stage: CreateRelease
displayName: 'Create release'
dependsOn:
- 'Build'
- 'Test'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
jobs:
- job: CreateReleaseJob
displayName: 'Create release'
variables:
SemVer: $[ stageDependencies.Build.BuildJob.outputs['OutputSemVerTask.SemVer'] ]
steps:
- download: current
displayName: 'Download package artifact'
artifact: 'Development Hub'
- task: ArchiveFiles@2
displayName: 'Zip package artifact'
inputs:
rootFolderOrFile: '$(Pipeline.Workspace)/Development Hub'
includeRootFolder: true
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/Development Hub v$(SemVer).zip'
replaceExistingArchive: true
- task: GitHubRelease@1
displayName: Create GitHub release
inputs:
gitHubConnection: 'GitHub (ewingjm)'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: 'v$(SemVer)'
releaseNotesSource: 'inline'
assets: '$(Build.ArtifactStagingDirectory)/Development Hub v$(SemVer).zip'
isPreRelease: true
changeLogCompareToRelease: 'lastNonDraftRelease'
changeLogType: 'commitBased'