Update azure-pipelines.yml

This commit is contained in:
Syrus Akbary 2019-11-11 13:31:38 -08:00 committed by GitHub
parent 26472d634c
commit 239e1e0544
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -216,6 +216,8 @@ jobs:
displayName: List Artifacts
env:
ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory)
- script: VERSION_TAG=`git describe --tags` && echo "##vso[task.setvariable variable=VERSION_TAG]$VERSION_TAG"
displayName: Set the tag name as an environment variable
- task: GithubRelease@0
displayName: "Create GitHub Release"
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
@ -224,11 +226,13 @@ jobs:
repositoryName: 'wasmerio/wasmer'
action: 'create'
target: '$(Build.SourceVersion)'
title: '$(VERSION_TAG)'
addChangeLog: false
tagSource: 'auto'
# TODO: automate it all by getting the release notes from somewhere else and using the `releaseNotesFile` key
isDraft: false
isPreRelease: false
assets: '$(Build.ArtifactStagingDirectory)/*'
assets: '$(Build.ArtifactStagingDirectory)'
- job: Docs
pool: