mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
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:
parent
eb0f4555ad
commit
a89e197add
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user