-
Notifications
You must be signed in to change notification settings - Fork 13
/
azure-pipelines.yml
68 lines (59 loc) · 2.07 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
66
67
68
trigger:
- master
pr:
- master
pool: Default
steps:
- script: 'call $(Build.SourcesDirectory)\scripts\UcsFP20\build.bat'
displayName: 'Build UcsFP20.dll'
workingDirectory: '$(Build.SourcesDirectory)\scripts\UcsFP20'
failOnStderr: true
- script: 'call $(Build.SourcesDirectory)\scripts\UcsFPHub\build.bat'
displayName: 'Build UcsFPHub.exe'
workingDirectory: '$(Build.SourcesDirectory)\scripts\UcsFPHub'
failOnStderr: true
- task: CopyFiles@2
displayName: 'Copy files to $(Build.BinariesDirectory)'
inputs:
sourceFolder: '$(Build.SourcesDirectory)\bin'
contents: |
UcsFP20.dll
UcsFP20.pdb
UcsFPHub.exe
UcsFPHub.pdb
targetFolder: '$(Build.BinariesDirectory)'
cleanTargetFolder: true
- task: ArchiveFiles@2
displayName: 'Archive $(Build.BinariesDirectory)'
inputs:
rootFolderOrFile: '$(Build.BinariesDirectory)'
archiveFile: '$(Build.ArtifactStagingDirectory)/UcsFPHub-latest.zip'
includeRootFolder: false
- task: PublishBuildArtifacts@1
displayName: 'Publish artifact UcsFPHub'
inputs:
pathToPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: UcsFPHub
- task: GithubRelease@0
displayName: 'Remove release `UcsFPHub-latest` on github.com'
condition: and(succeeded(), not(startsWith(variables['Build.SourceBranch'], 'refs/pull')))
continueOnError: true
inputs:
githubConnection: github.com_wqweto
repositoryName: wqweto/UcsFiscalPrinters
action: delete
tag: UcsFPHub-latest
- task: GithubRelease@0
displayName: 'Create release `UcsFPHub-latest` on github.com'
condition: and(succeeded(), not(startsWith(variables['Build.SourceBranch'], 'refs/pull')))
inputs:
githubConnection: github.com_wqweto
repositoryName: wqweto/UcsFiscalPrinters
action: create
tagSource: manual
tag: UcsFPHub-latest
title: 'UcsFPHub latest build'
assets: $(Build.ArtifactStagingDirectory)/*
addChangeLog: true
compareWith: lastRelease
isPreRelease: true