You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have two branches, master and foo. Both have the gh-pages task defined, but foo's is incorrect for whatever reason.
You run gh-pages while in foo. Whoops! The wrong files got deployed. Maybe you didn't notice.
I think most people will want to run gh-pages against master.
What about an option that, by default, says you cannot run the gh-pages task from any other branch than master? Then allow the user to provide an array of "allowed" branches if their use case differs.
The text was updated successfully, but these errors were encountered:
Now that I think about it (and after fixing my build) my first comment was a bit too fast.
The following travis config will prevent any deploys on non-master branches:
after_success:
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && grunt gh-pages
It might make sense to add a note to the Readme telling about this. :)
You have two branches,
master
andfoo
. Both have thegh-pages
task defined, butfoo
's is incorrect for whatever reason.You run
gh-pages
while infoo
. Whoops! The wrong files got deployed. Maybe you didn't notice.I think most people will want to run
gh-pages
againstmaster
.What about an option that, by default, says you cannot run the
gh-pages
task from any other branch thanmaster
? Then allow the user to provide an array of "allowed" branches if their use case differs.The text was updated successfully, but these errors were encountered: