-
Notifications
You must be signed in to change notification settings - Fork 28
/
azure-pipelines.yml
48 lines (45 loc) · 1.62 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
name: $(GITVERSION_FullSemVer)
trigger:
batch: true
branches:
include:
- master
pr: none
pool:
vmImage: windows-latest
stages:
- template: templates/build-and-test-stages.yml
- stage: Publish
displayName: Publish
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.SpecFlowBindings
- task: NuGetCommand@2
displayName: Push to NuGet.org
inputs:
command: push
packagesToPush: '$(Pipeline.Workspace)/Capgemini.PowerApps.SpecFlowBindings/*.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 (ewingjm)'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: 'v$(SemVer)'
releaseNotesSource: 'inline'
assets: '$(Pipeline.Workspace)/Capgemini.PowerApps.SpecFlowBindings/*'
isPreRelease: true
changeLogCompareToRelease: 'lastNonDraftRelease'
changeLogType: commitBased