Browse Source

Only deploy on 'master' builds

default_compile_flags
vector-of-bool 3 years ago
parent
commit
0e8e3cd29c
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      azure-pipelines.yml

+ 1
- 4
azure-pipelines.yml View File



variables: variables:
shouldDeploy: >- shouldDeploy: >-
${{ or(
eq(variables['Build.SourceBranch'], 'refs/heads/develop'),
eq(variables['Build.SourceBranch'], 'refs/heads/master')
) }}
${{ eq(variables['Build.SourceBranch'], 'refs/heads/master') }}
deployDest: ${{ format('~/web/{0}/', variables['Build.SourceBranchName']) }} deployDest: ${{ format('~/web/{0}/', variables['Build.SourceBranchName']) }}


stages: stages:

Loading…
Cancel
Save