Skip to content

Commit

Permalink
Fix for setting versions
Browse files Browse the repository at this point in the history
  • Loading branch information
asb2m10 committed Sep 18, 2020
1 parent deb69c1 commit 8ec75a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions azure-pipelines.yml
Expand Up @@ -6,9 +6,6 @@ trigger:
pr:
- master

variables:
version: BETA

jobs:
# We projuce on mac and share the assets so we don't have to run projucer on linux
- job: Projuce
Expand Down Expand Up @@ -173,7 +170,7 @@ jobs:

- job: UpdateGithubRelease
dependsOn: Build
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
condition: and(and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')), eq(variables['version'], 'Nightly')

steps:
- task: DownloadPipelineArtifact@0
Expand Down
4 changes: 2 additions & 2 deletions scripts/set-version.sh
Expand Up @@ -2,8 +2,8 @@

GIT_TAG=`git rev-parse --short HEAD`
BUILDDATE=`date +%Y%m%d`
if [ $1 == "BETA" ]; then
VERSION="${GIT_TAG}-BETA"
if [ $1 = "Nightly" ]; then
VERSION="${GIT_TAG}-Nightly"
else
VERSION=$1
fi
Expand Down

0 comments on commit 8ec75a7

Please sign in to comment.