-
-
Notifications
You must be signed in to change notification settings - Fork 209
/
azure-pipelines.yml
78 lines (69 loc) · 2.64 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
69
70
71
72
73
74
75
76
77
78
trigger:
- main
# PRs are not currently built (https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=azure-devops&tabs=yaml)
pr: none
pool: Default
steps:
- script: 'call "$(Build.SourcesDirectory)\Support\CI\build.bat" "$(Build.SourcesDirectory)"'
displayName: 'Build PhotoDemon.vbp'
workingDirectory: '$(Build.SourcesDirectory)\Support\CI'
failOnStderr: true
- task: CopyFiles@2
displayName: 'Copy PhotoDemon.exe to $(Build.BinariesDirectory)'
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: |
Donate to PhotoDemon.url
AUTHORS.md
INSTALL.md
LICENSE.md
README.md
PhotoDemon.exe
targetFolder: '$(Build.BinariesDirectory)'
cleanTargetFolder: true
- task: CopyFiles@2
displayName: 'Copy App folder to $(Build.BinariesDirectory)\App'
inputs:
sourceFolder: '$(Build.SourcesDirectory)\App'
contents: '**'
targetFolder: '$(Build.BinariesDirectory)\App'
- task: ArchiveFiles@2
displayName: 'Archive $(Build.BinariesDirectory)'
inputs:
rootFolderOrFile: '$(Build.BinariesDirectory)'
archiveFile: '$(Build.ArtifactStagingDirectory)/PhotoDemon-nightly.zip'
includeRootFolder: false
replaceExistingArchive: true
- task: PublishBuildArtifacts@1
displayName: 'Publish artifact PhotoDemon'
inputs:
pathToPublish: '$(Build.BinariesDirectory)'
artifactName: 'PhotoDemon'
parallel: true
- task: GithubRelease@1
displayName: 'Remove release `PhotoDemon-nightly` on github.com'
condition: and(succeeded(), not(startsWith(variables['Build.SourceBranch'], 'refs/pull')))
continueOnError: true
inputs:
githubConnection: 'GitHub'
repositoryName: 'tannerhelland/PhotoDemon'
action: 'delete'
tag: 'PhotoDemon-nightly'
- task: GithubRelease@1
displayName: 'Create release `PhotoDemon-nightly` on github.com'
condition: and(succeeded(), not(startsWith(variables['Build.SourceBranch'], 'refs/pull')))
inputs:
gitHubConnection: 'GitHub'
repositoryName: 'tannerhelland/PhotoDemon'
action: 'create'
tagSource: 'userSpecifiedTag'
tag: 'PhotoDemon-nightly'
title: 'PhotoDemon nightly build'
assets: $(Build.ArtifactStagingDirectory)/*
assetUploadMode: 'delete'
isPreRelease: true
releaseNotesSource: 'inline'
releaseNotesInline: 'This release was automatically built from PhotoDemon''s current source code. It may contain serious bugs. Use at your own risk.'
addChangeLog: true
changeLogType: 'commitBased'
changeLogCompareToRelease: 'lastFullRelease'