-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
65 lines (63 loc) · 1.85 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
61
62
63
64
65
trigger:
branches:
include:
- master
- develop
tags:
include:
- v*
stages:
- stage: Build
displayName: Build
jobs:
- job: BuildViewer
displayName: Build viewer
strategy:
matrix:
win-x64:
imageName: windows-latest
runtime: win-x64
win-x86:
imageName: windows-latest
runtime: win-x86
pool:
vmImage: $(imageName)
steps:
- script: dotnet tool restore
displayName: restore nuke tool
- script: dotnet nuke Publish -Runtime $(runtime)
displayName: publish application $(runtime)
- publish: output
artifact: excursion360-desktop-build-$(runtime)
displayName: publish executable artifact
- job: PublishReleaseNotes
displayName: Publish release notes
pool:
vmImage: 'ubuntu-latest'
steps:
- publish: ReleaseNotes.md
artifact: excursion360-desktop-release-notes
displayName: publish release notes
- stage: Deploy
displayName: Deploy
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: DeployViewer
displayName: Deploy viewer
steps:
- checkout: none
- download: current
- task: GitHubRelease@1
inputs:
gitHubConnection: 'CAPCHIK'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'gitTag'
releaseNotesFilePath: '$(Pipeline.Workspace)/excursion360-desktop-release-notes/ReleaseNotes.md'
assets: '$(Pipeline.Workspace)/excursion360-desktop-build*/*'
isDraft: false
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'