File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 5757 - provider : script
5858 skip_cleanup : true
5959 script : ./resources/npm-git.sh
60- on :
61- branch : master
60+ # on: Commented out just for testing
61+ # branch:
62+ # - master
63+ # - 3.x
6264 - provider : npm
6365 skip_cleanup : true
6466 email :
Original file line number Diff line number Diff line change 99# From: https://github.com/graphql/graphql-js/blob/master/resources/npm-git.sh
1010
1111BUILD_DIR=latest
12+ BRANCH=$( git rev-parse --abbrev-ref HEAD)
13+ TARGET=" latest"
14+ if [ " $BRANCH " != " master" ];
15+ then
16+ TARGET=" $BRANCH -preview"
17+ fi
1218
1319npm run build
1420
@@ -29,5 +35,5 @@ git init
2935git config user.name " Travis CI"
3036git config user.email
" [email protected] " 3137git add .
32- git commit -m " Deploy master to LATEST branch"
33- git push --force --quiet " https://${GH_TOKEN} @github.com/parse-community/parse-server.git" master:latest
38+ git commit -m " Deploy $BRANCH to $TARGET branch"
39+ git push --force --quiet " https://${GH_TOKEN} @github.com/parse-community/parse-server.git" master:$TARGET
You can’t perform that action at this time.
0 commit comments