-
Notifications
You must be signed in to change notification settings - Fork 8
/
azure-pipelines.yml
55 lines (51 loc) · 1.82 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
name: $(GITVERSION_FullSemVer)
trigger:
batch: true
branches:
include:
- master
pr: none
pool:
vmImage: windows-latest
stages:
- template: templates/build-and-test-stages.yml
parameters:
environmentIdentifier: $(Build.BuildId)
environmentDisplayName: Package Deployer Template - CI
environmentDomainName: pdt-ci
- stage: Publish
displayName: Publish
dependsOn:
- BuildAndTest
- ManualValidation
jobs:
- job: PublishJob
displayName: Publish
variables:
SemVer: $[ stageDependencies.BuildAndTest.BuildAndTestJob.outputs['OutputSemVerTask.SemVer'] ]
steps:
- checkout: none
- download: current
displayName: Download NuGet package artifact
artifact: Capgemini.PowerApps.PackageDeployerTemplate
- task: NuGetCommand@2
displayName: Push to NuGet.org
inputs:
command: push
packagesToPush: '$(Pipeline.Workspace)/Capgemini.PowerApps.PackageDeployerTemplate/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: Capgemini_UK
- task: GitHubRelease@1
displayName: Create GitHub releaes
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
gitHubConnection: 'github.com_tdashworth'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: 'v$(SemVer)'
releaseNotesSource: 'inline'
assets: '$(Pipeline.Workspace)/Capgemini.PowerApps.PackageDeployerTemplate/*'
changeLogCompareToRelease: 'lastNonDraftRelease'
changeLogType: 'commitBased'