Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
CAPCHIK committed Jan 18, 2021
1 parent d945c97 commit 66d952b
Showing 1 changed file with 43 additions and 17 deletions.
60 changes: 43 additions & 17 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,46 @@
trigger:
- master

pool:
vmImage: 'windows-latest'
branches:
include:
- master
tags:
include:
- v*

stages:
- stage: Build
displayName: Build
jobs:
- job: BuildViewer
displayName: Build viewer
steps:
- script: dotnet tool restore
displayName: restore nuke tool
- script: dotnet nuke Publish -Runtime win-x86
displayName: publish application win-x64
- publish: output
artifact: excursion360-desktop-win-x64
displayName: publish executable artifact
- stage: Build
displayName: Build
pool:
vmImage: 'windows-latest'
jobs:
- job: BuildViewer
displayName: Build viewer
steps:
- script: dotnet tool restore
displayName: restore nuke tool
- script: dotnet nuke Publish -Runtime win-x86
displayName: publish application win-x64
- publish: output
artifact: excursion360-desktop-win-x64
displayName: publish executable artifact

- stage: Deploy
displayName: Deploy
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: DeployViewer
displayName: Deploy viewer
steps:
- download: current
- task: GitHubRelease@1
inputs:
gitHubConnection: 'CAPCHIK'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'gitTag'
assets: '$(Pipeline.Workspace)/excursion360-desktop-win-x64'
isDraft: true
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'

0 comments on commit 66d952b

Please # to comment.