Commit b3c1ffbf authored by Nikita Titov's avatar Nikita Titov Committed by Guolin Ke
Browse files

[ci] create GitHub release automatically (#2171)

* added GitHub Release task

* add connection name

* test

* added triggers for tags

* hotfixes
parent f91e5644
trigger:
branches:
include:
- '*'
tags:
include:
- v*
variables: variables:
PYTHON_VERSION: 3.7 PYTHON_VERSION: 3.7
CONDA_ENV: test-env CONDA_ENV: test-env
...@@ -161,3 +168,20 @@ jobs: ...@@ -161,3 +168,20 @@ jobs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)' pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: NuGet artifactName: NuGet
artifactType: container artifactType: container
- task: GitHubRelease@0
displayName: 'Create GitHub Release'
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
inputs:
gitHubConnection: guolinke
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'auto'
title: '$(Build.SourceBranchName)'
assets: |
$(Build.SourcesDirectory)/binaries/PackageAssets/*
$(Build.ArtifactStagingDirectory)/*.nupkg
assetUploadMode: 'delete'
isDraft: true
isPreRelease: false
addChangeLog: false
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment