Update github release task as well
This commit is contained in:
parent
09762b23ee
commit
500bdd0c8c
|
@ -119,6 +119,7 @@ stages:
|
||||||
archiveFile: '$(Build.ArtifactStagingDirectory)/zola-$(Build.SourceBranchName)-$(TARGET).zip'
|
archiveFile: '$(Build.ArtifactStagingDirectory)/zola-$(Build.SourceBranchName)-$(TARGET).zip'
|
||||||
|
|
||||||
- task: GithubRelease@0
|
- task: GithubRelease@0
|
||||||
|
condition: ne( variables['Agent.OS'], 'Windows_NT' )
|
||||||
inputs:
|
inputs:
|
||||||
gitHubConnection: 'zola'
|
gitHubConnection: 'zola'
|
||||||
repositoryName: 'getzola/zola'
|
repositoryName: 'getzola/zola'
|
||||||
|
@ -130,3 +131,16 @@ stages:
|
||||||
title: '$(Build.SourceBranchName)'
|
title: '$(Build.SourceBranchName)'
|
||||||
assetUploadMode: 'replace'
|
assetUploadMode: 'replace'
|
||||||
addChangeLog: true
|
addChangeLog: true
|
||||||
|
- task: GithubRelease@0
|
||||||
|
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
||||||
|
inputs:
|
||||||
|
gitHubConnection: 'zola'
|
||||||
|
repositoryName: 'getzola/zola'
|
||||||
|
action: 'edit'
|
||||||
|
target: '$(build.sourceVersion)'
|
||||||
|
tagSource: 'manual'
|
||||||
|
tag: '$(Build.SourceBranchName)'
|
||||||
|
assets: '$(Build.ArtifactStagingDirectory)/zola-$(Build.SourceBranchName)-$(TARGET).zip'
|
||||||
|
title: '$(Build.SourceBranchName)'
|
||||||
|
assetUploadMode: 'replace'
|
||||||
|
addChangeLog: true
|
Loading…
Reference in a new issue