forked from Capgemini/powerapps-specflow-bindings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
53 lines (53 loc) · 1.79 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
name: $(GITVERSION_FullSemVer)
trigger:
batch: true
branches:
include:
- master
pr: none
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
GitVersion.SemVer: ''
stages:
- stage: BuildAndTest
displayName: Build and test
jobs:
- template: templates/include-build-and-test-steps.yml
- stage: Publish
displayName: Publish
jobs:
- job: PublishJob
displayName: Publish
variables:
SemVer: $[ stageDependencies.BuildAndTest.BuildJob.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