Skip to content

Commit

Permalink
Pre-release for dev and stable for master
Browse files Browse the repository at this point in the history
  • Loading branch information
coder3101 committed Jan 28, 2020
1 parent 176ae38 commit 72ab517
Showing 1 changed file with 37 additions and 6 deletions.
43 changes: 37 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jobs:
- script: VERSION_TAG=`git describe --tags` && echo "##vso[task.setvariable variable=VERSION_TAG]$VERSION_TAG"
displayName: Set the tag name as an environment variable


- script: |
source /opt/qt*/bin/qt*-env.sh
cd $(Build.SourcesDirectory)/build
Expand All @@ -48,16 +47,32 @@ jobs:
displayName: 'Package to AppImage'
- task: GitHubRelease@1
condition: endsWith(variables['Build.SourceBranch'], 'dev')
inputs:
gitHubConnection: github.com_coder3101
repositoryName: '$(Build.Repository.Name)'
action: 'edit'
tag: $(VERSION_TAG)
target: '$(Build.SourceVersion)'
title: 'CP Editor'
isPreRelease: endsWith(variables['Build.SourceBranch'], 'dev')
title: 'CP Editor Beta'
isPreRelease: true
assets: $(Build.SourcesDirectory)/build/CP_*
assetUploadMode: 'replace' # Optional. Options: delete, replace
assetUploadMode: 'replace'
changeLogCompareToRelease: 'lastNonDraftRelease'
changeLogType: 'commitBased'

- task: GitHubRelease@1
condition: endsWith(variables['Build.SourceBranch'], 'master')
inputs:
gitHubConnection: github.com_coder3101
repositoryName: '$(Build.Repository.Name)'
action: 'edit'
tag: $(VERSION_TAG)
target: '$(Build.SourceVersion)'
title: 'CP Editor - Stable'
isPreRelease: false
assets: $(Build.SourcesDirectory)/build/CP_*
assetUploadMode: 'replace'
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'

Expand Down Expand Up @@ -117,14 +132,30 @@ jobs:
dir .
displayName: 'Inno setup compile'
- task: GitHubRelease@1
condition: endsWith(variables['Build.SourceBranch'], 'dev')
inputs:
gitHubConnection: github.com_coder3101
repositoryName: '$(Build.Repository.Name)'
action: 'edit'
target: '$(Build.SourceVersion)'
title: 'CP Editor - Beta'
tag: $(CI_BUILD_TAG)
isPreRelease: true
assetUploadMode: 'replace' # Optional. Options: delete, replace
assets: $(Build.SourcesDirectory)/*.exe
changeLogCompareToRelease: 'lastNonDraftRelease'
changeLogType: 'commitBased'

- task: GitHubRelease@1
condition: endsWith(variables['Build.SourceBranch'], 'master')
inputs:
gitHubConnection: github.com_coder3101
repositoryName: '$(Build.Repository.Name)'
action: 'edit'
target: '$(Build.SourceVersion)'
title: 'CP Editor'
title: 'CP Editor - Stable'
tag: $(CI_BUILD_TAG)
isPreRelease: endsWith(variables['Build.SourceBranch'], 'dev')
isPreRelease: false
assetUploadMode: 'replace' # Optional. Options: delete, replace
assets: $(Build.SourcesDirectory)/*.exe
changeLogCompareToRelease: 'lastFullRelease'
Expand Down

0 comments on commit 72ab517

Please sign in to comment.