Skip to content

Commit

Permalink
修改azure devops配置
Browse files Browse the repository at this point in the history
  • Loading branch information
yihango committed Jun 24, 2021
1 parent e2c4fbb commit cbb49f1
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,46 @@
# https://docs.microsoft.com/zh-cn/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#ci-triggers
trigger:
batch: true
branches:
tags:
include:
- master
paths:
include:
- version.props
- 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'
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'


0 comments on commit cbb49f1

Please # to comment.