From a89e197addab678dfad9ea03d0695d68a115193e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20A=CC=81ngel=20San=20Marti=CC=81n?= Date: Mon, 16 Sep 2019 20:49:18 +0200 Subject: [PATCH] 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 --- azure-pipelines.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 99739720..7de0662c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -147,15 +147,17 @@ jobs: - task: DownloadPipelineArtifact@2 inputs: 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: | VERSION="$(cat common/yacreader_global.h | grep '#define VERSION "' | tr -d '#define VERSION' | tr -d '"' )" echo "##vso[task.setvariable variable=VERSION]$VERSION" - displayName: 'Create tarball' + displayName: 'Version' - task: GitHubRelease@0 inputs: gitHubConnection: yacreader-releases - assets: $(Build.SourcesDirectory)/dev_bin/**/*.*' title: $(VERSION) tagSource: 'manual' tag: $(VERSION)