Skip to content

Commit 92a90af

Browse files
committed
ci: Only run release stages on master branch
1 parent f3a711c commit 92a90af

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- RUN_COVERAGE=travis bin/rails test
2121
- bin/rails coverage:report
2222
- stage: Release + website update
23+
if: branch = master
2324
language: node_js
2425
node_js: lts/*
2526
cache:
@@ -30,9 +31,8 @@ jobs:
3031
skip_cleanup: true
3132
script:
3233
- yarn semantic-release
33-
on:
34-
branch: master
3534
- # stage name not required, will continue to use `Release + website update`
35+
if: branch = master
3636
language: node_js
3737
node_js: lts/*
3838
cache:
@@ -42,5 +42,3 @@ jobs:
4242
provider: script
4343
skip_cleanup: true
4444
script: bash website/travis-deploy.sh
45-
on:
46-
branch: master

0 commit comments

Comments
 (0)