Artifacts in $(Build.ArtifactStagingDirectory) should be automatically uploaded

So downloading the artifacts to that folder and then flatten it should get the files ready to be uploaded
This commit is contained in:
Luis Ángel San Martín 2019-09-16 20:49:18 +02:00
parent eb0f4555ad
commit a89e197add

View File

@ -147,15 +147,17 @@ jobs:
- task: DownloadPipelineArtifact@2 - task: DownloadPipelineArtifact@2
inputs: inputs:
buildType: 'current' buildType: 'current'
targetPath: $(Build.SourcesDirectory)/dev_bin targetPath: $(Build.ArtifactStagingDirectory)
- script: |
find $(Build.ArtifactStagingDirectory) -name '*.*' -exec cp {} $(Build.ArtifactStagingDirectory) \;
displayName: 'flatten artifact staging directory'
- script: | - script: |
VERSION="$(cat common/yacreader_global.h | grep '#define VERSION "' | tr -d '#define VERSION' | tr -d '"' )" VERSION="$(cat common/yacreader_global.h | grep '#define VERSION "' | tr -d '#define VERSION' | tr -d '"' )"
echo "##vso[task.setvariable variable=VERSION]$VERSION" echo "##vso[task.setvariable variable=VERSION]$VERSION"
displayName: 'Create tarball' displayName: 'Version'
- task: GitHubRelease@0 - task: GitHubRelease@0
inputs: inputs:
gitHubConnection: yacreader-releases gitHubConnection: yacreader-releases
assets: $(Build.SourcesDirectory)/dev_bin/**/*.*'
title: $(VERSION) title: $(VERSION)
tagSource: 'manual' tagSource: 'manual'
tag: $(VERSION) tag: $(VERSION)