From c74ad79c03c87c99a2911d7222e7b41f05820583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 18 Dec 2021 15:11:50 +0100 Subject: [PATCH] Try to upload dev builds to yacreader-dev-builds --- azure-pipelines.yml | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c31e4bdb..65e41b57 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -131,24 +131,29 @@ jobs: - Windows_x64 condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/develop'), true) variables: - - group: artifactory + - group: github-releases pool: vmImage: 'ubuntu-20.04' steps: - - task: DownloadPipelineArtifact@2 - inputs: - buildType: 'current' - targetPath: $(Build.SourcesDirectory)/dev_bin - - script: | - ls -lah $(Build.SourcesDirectory)/dev_bin/**/*.* - - task: cURLUploader@2 - inputs: - files: '$(Build.SourcesDirectory)/dev_bin/**/*.*' - authType: 'userAndPass' - username: $(username) - password: $(pass) - remotePath: '' - url: https://yacreader.jfrog.io/artifactory/yacreader/$(Build.BuildNumber)/ + - task: DownloadPipelineArtifact@2 + inputs: + buildType: 'current' + targetPath: $(Build.ArtifactStagingDirectory) + - script: | + find $(Build.ArtifactStagingDirectory) -name '*.*' -exec cp {} $(Build.ArtifactStagingDirectory) \; + displayName: 'flatten artifact staging directory' + - script: | + VERSION="$(Build.BuildNumber)" + echo "##vso[task.setvariable variable=VERSION]$VERSION" + displayName: 'Version' + - task: GitHubRelease@0 + inputs: + gitHubConnection: yacreader-releases + repositoryName: yacreader-dev-builds + title: $(VERSION) + tagSource: 'manual' + tag: $(VERSION) + addChangeLog: false - ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}: - job: Release