-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
47 lines (40 loc) · 1.05 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
# github ci triggers doc:
# https://docs.microsoft.com/zh-cn/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#ci-triggers
trigger:
batch: true
tags:
include:
- v*
pool:
vmImage: 'ubuntu-latest'
variables:
gitHubConnection: 'rivenfx'
steps:
- task: PowerShell@2
name: "build_to_nuget_pakcages"
displayName: '打包'
inputs:
filePath: './nupkg/pack.ps1'
pwsh: true
workingDirectory: './nupkg'
- task: PowerShell@2
name: "publish_to_nuget"
displayName: '推送到 nuget'
inputs:
filePath: './nupkg/push_packages.ps1'
arguments: $(nuget_key)
pwsh: true
workingDirectory: './nupkg'
- task: GitHubRelease@1
name: "create_git_release_tag"
displayName: '创建 github release 标签'
inputs:
gitHubConnection: 'staneee'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'gitTag'
tagPattern: 'v.*'
releaseNotesFilePath: './RELEASE_NOTES.md'
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'