mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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
|
- 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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user