File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 57
57
- provider : script
58
58
skip_cleanup : true
59
59
script : ./resources/npm-git.sh
60
- on :
61
- branch : master
60
+ # on: Commented out just for testing
61
+ # branch:
62
+ # - master
63
+ # - 3.x
62
64
- provider : npm
63
65
skip_cleanup : true
64
66
email :
Original file line number Diff line number Diff line change 9
9
# From: https://github.com/graphql/graphql-js/blob/master/resources/npm-git.sh
10
10
11
11
BUILD_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
12
18
13
19
npm run build
14
20
@@ -29,5 +35,5 @@ git init
29
35
git config user.name " Travis CI"
30
36
git config user.email
" [email protected] "
31
37
git 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