Publish only when building master branch

This commit is contained in:
Ugljesa Jovanovic 2020-10-21 22:18:28 +02:00
parent e284a70923
commit 6f28cb93f7
No known key found for this signature in database
GPG Key ID: 178E6DFCECCB0E0F
2 changed files with 14 additions and 16 deletions

View File

@ -32,11 +32,8 @@ linuxPublishToSnapshot:
script:
- ./linuxBuild.sh
- ./linuxBuildAndPublish.sh
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
- allow_failure: false
needs:
- job: buildLinux
only:
- master
tags:
- linuxX64
@ -58,11 +55,8 @@ macPublishToSnapshot:
- ./macBuild.sh
- ./macBuildAndPublishSnapshot-bindings.sh
- ./macBuildAndPublishSnapshot-delegated.sh
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
- allow_failure: false
needs:
- job: buildMac
only:
- master
tags:
- macos
@ -85,10 +79,7 @@ windowsPublishToSnapshot:
- $env:CHERE_INVOKING = 'yes'
- C:\msys64\usr\bin\bash -lc "./windowsBuildAndPublish-delegated.sh"
- C:\msys64\usr\bin\bash -lc "./windowsBuildAndPublish-pure.sh"
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
- allow_failure: false
needs:
- job: buildWindows
only:
- master
tags:
- windowsX64

View File

@ -144,7 +144,14 @@ Currently supported native platforms:
#### Notes for Gitlab runners:
- At the moment all runners need to have android sdk
#### Mac:
#### Windows:
- Needs android sdk
- Git needs long file path enabled
- msys2 needs to be installed and `pacman update` executed