-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
72 lines (60 loc) · 2.03 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
# Azure Pipelines
name: "v$(Date:yyMMdd)_r$(Rev:r)"
# run pipeline build, when main branch changes
trigger:
- main
# don't run against pull-requests
pr: none
pool:
vmImage: 'windows-latest'
steps:
- checkout: self
fetchDepth: 1
displayName: 🤘 Checkout Code
- task: CmdLine@2
displayName: 'Set Version Number vars'
inputs:
script: |
SETLOCAL EnableDelayedExpansion
FOR /F "tokens=* USEBACKQ" %%F IN (`git rev-parse --short HEAD`) DO (
@echo ##vso[task.setvariable variable=GIT_COMMIT_HASH_SHORT;]%%F
)
echo ##vso[task.setvariable variable=GIT_BRANCH]$(Build.SourceBranchName)
echo ##vso[task.setvariable variable=APP_BUILD_VERSION]dev-$(GIT_COMMIT_HASH_SHORT)
workingDirectory: '$(Build.SourcesDirectory)'
- bash: |
echo $GIT_COMMIT_HASH_SHORT
echo $GIT_BRANCH
echo $APP_BUILD_VERSION
displayName: Show APP_BUILD_VERSION
- script: build-tools\php\php.exe build-tools\build.php
displayName: 🔽 Download Components
- script: |
ls -lhs downloads
ls -lhs build-tools
ls -lhs .
displayName: ℹ List Downloads
- script: build-tools\InnoSetup6\iscc.exe /DAPP_VERSION=$(APP_BUILD_VERSION) installer\Reaper-Toolbox.iss
displayName: 🙏 Compile Installer
# https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/github-release-v1
- task: GitHubRelease@1
displayName: 📢 Add Github Release
inputs:
githubConnection: 'github.com_jakoch'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
tag: '$(Build.BuildNumber)'
title: 'Reaper-Toolbox $(Build.BuildNumber)'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
releaseNotesFilePath: 'release_notes.md'
assets: 'release/Reaper-Toolbox*.exe'
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'
schedules:
- cron: "0 12 * * 0"
displayName: ⚙ Build Weekly@Sunday
branches:
include:
- main
always: true