-
Notifications
You must be signed in to change notification settings - Fork 8
/
azure-pipelines.yml
41 lines (40 loc) · 1.2 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
trigger:
- meowster
jobs:
- job: build_win_x64
displayName: Build win-x64
pool:
vmImage: windows-2022
steps:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '7.0.100-rc.1.22431.12'
includePreviewVersions: true
- task: PowerShell@2
inputs:
filePath: 'aot-build.ps1'
arguments: '-PublishDir $(Build.ArtifactStagingDirectory)/win-x64'
pwsh: true
- task: ArchiveFiles@2
displayName: Zip binaries
inputs:
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/win-x64'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/nitrosharp-win-x64-$(Build.BuildNumber).zip'
replaceExistingArchive: true
- task: GitHubRelease@1
displayName: 'Create GitHub release'
inputs:
gitHubConnection: 'github.com_SomeAnonDev'
repositoryName: 'CommitteeOfZero/nitrosharp'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: '$(Build.BuildNumber)'
releaseNotesSource: 'inline'
assets: |
$(Build.ArtifactStagingDirectory)/*.zip
$(Build.ArtifactStagingDirectory)/win-x64/*.exe
addChangeLog: false