mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Don't deploy if you're not on master
Thank you: https://github.com/travis-ci/travis-ci/issues/5419#issuecomment-222815942
This commit is contained in:
parent
3d85451aff
commit
90f747a2a9
@ -22,11 +22,11 @@ deploy:
|
||||
api_key: $NPM_TOKEN
|
||||
on:
|
||||
tags: true
|
||||
branch: master
|
||||
condition: $(git branch --contains $TRAVIS_TAG | grep -l '^[\* ] master$')
|
||||
- provider: pages
|
||||
skip_cleanup: true
|
||||
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
|
||||
keep_history: true
|
||||
on:
|
||||
tags: true
|
||||
branch: master
|
||||
condition: $(git branch --contains $TRAVIS_TAG | grep -l '^[\* ] master$')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user