-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
79 lines (78 loc) · 2.62 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
79
trigger:
branches:
include:
- master
- refs/tags/v*
jobs:
- job: build_windows
displayName: Build Windows
pool:
vmImage: 'vs2017-win2016'
strategy:
matrix:
x64 Release:
TBM_BuildType: Release
TBM_CMakeArgs: '-G"Visual Studio 15 2017 Win64"'
TBM_ExecutablePath: 'build\Release\Among_Us_Taskbar_Mask.exe'
TBM_ArtifactClassifier: 'win-x64'
x86 Release:
TBM_BuildType: Release
TBM_CMakeArgs: '-G"Visual Studio 15 2017"'
TBM_ExecutablePath: 'build\Release\Among_Us_Taskbar_Mask.exe'
TBM_ArtifactClassifier: 'win-x86'
steps:
- task: CMake@1
inputs:
cmakeArgs: '.. $(TBM_CMakeArgs) -DCMAKE_BUILD_TYPE=$(TBM_BuildType)'
- task: MSBuild@1
inputs:
solution: 'build/TBM.sln'
msbuildArguments: '/m /p:Configuration=$(TBM_BuildType)'
- task: CmdLine@2
inputs:
script: 'copy /B "$(TBM_ExecutablePath)" "$(Build.ArtifactStagingDirectory)\among-us-taskbar-mask-$(TBM_ArtifactClassifier).exe"'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifact: 'Standalone Executable @ $(TBM_ArtifactClassifier)'
publishLocation: 'pipeline'
- job: release
displayName: Release
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
dependsOn:
- build_windows
pool:
vmImage: 'ubuntu-18.04'
variables:
TBM_ReleaseDirectory: '$(Pipeline.Workspace)/releases'
steps:
- task: Bash@3
inputs:
targetType: 'inline'
script: "mkdir '$(TBM_ReleaseDirectory)'"
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
artifactName: 'Standalone Executable @ win-x64'
targetPath: '$(TBM_ReleaseDirectory)'
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
artifactName: 'Standalone Executable @ win-x86'
targetPath: '$(TBM_ReleaseDirectory)'
- task: Bash@3
inputs:
targetType: 'inline'
script: "cd '$(TBM_ReleaseDirectory)' && ls"
- task: GitHubRelease@1
inputs:
gitHubConnection: github.com_nathan818fr
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'gitTag'
isDraft: true
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'
assets: |
$(TBM_ReleaseDirectory)/*