mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Try to upload dev builds to yacreader-dev-builds
This commit is contained in:
parent
181494027b
commit
c74ad79c03
@ -131,24 +131,29 @@ jobs:
|
|||||||
- Windows_x64
|
- Windows_x64
|
||||||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/develop'), true)
|
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/develop'), true)
|
||||||
variables:
|
variables:
|
||||||
- group: artifactory
|
- group: github-releases
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-20.04'
|
vmImage: 'ubuntu-20.04'
|
||||||
steps:
|
steps:
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
inputs:
|
inputs:
|
||||||
buildType: 'current'
|
buildType: 'current'
|
||||||
targetPath: $(Build.SourcesDirectory)/dev_bin
|
targetPath: $(Build.ArtifactStagingDirectory)
|
||||||
- script: |
|
- script: |
|
||||||
ls -lah $(Build.SourcesDirectory)/dev_bin/**/*.*
|
find $(Build.ArtifactStagingDirectory) -name '*.*' -exec cp {} $(Build.ArtifactStagingDirectory) \;
|
||||||
- task: cURLUploader@2
|
displayName: 'flatten artifact staging directory'
|
||||||
inputs:
|
- script: |
|
||||||
files: '$(Build.SourcesDirectory)/dev_bin/**/*.*'
|
VERSION="$(Build.BuildNumber)"
|
||||||
authType: 'userAndPass'
|
echo "##vso[task.setvariable variable=VERSION]$VERSION"
|
||||||
username: $(username)
|
displayName: 'Version'
|
||||||
password: $(pass)
|
- task: GitHubRelease@0
|
||||||
remotePath: ''
|
inputs:
|
||||||
url: https://yacreader.jfrog.io/artifactory/yacreader/$(Build.BuildNumber)/
|
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'))) }}:
|
- ${{ 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
|
- job: Release
|
||||||
|
Loading…
Reference in New Issue
Block a user