Skip to content

Commit 6ab0e1f

Browse files
committed
ci: Only run deploy steps on master branch pushes
1 parent 61f89e2 commit 6ab0e1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
include:
3232
- stage: deploy
3333
name: Build & publish new release (if needed)
34-
if: branch = master AND repo = "codeRIT/hackathon-manager"
34+
if: type = push AND branch = master AND repo = "codeRIT/hackathon-manager"
3535
language: node_js
3636
node_js: lts/*
3737
cache:
@@ -41,7 +41,7 @@ jobs:
4141
script: yarn semantic-release
4242
- stage: deploy
4343
name: Push docs website update
44-
if: branch = master AND repo = "codeRIT/hackathon-manager"
44+
if: type = push AND branch = master AND repo = "codeRIT/hackathon-manager"
4545
language: node_js
4646
node_js: lts/*
4747
cache:

0 commit comments

Comments
 (0)