File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,10 +4,11 @@ firebase-debug.log*
44npm-debug.log *
55
66/.env
7- /client-secret-staging.json
87/node_modules /
98/public /_client /
109/secrets.tar
1110/secret_key
1211/server.js
12+ /service-account-staging.json
13+ /service-account.json
1314/tokens /
Original file line number Diff line number Diff line change @@ -12,15 +12,21 @@ before_install:
1212- tar xvf secrets.tar
1313script :
1414- npm run lint
15- - NODE_ENV=$([ "$TRAVIS_BRANCH" == "master" ] && echo "production" || echo "staging")
15+ - NODE_ENV=$(( [ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_BRANCH" == "gae" ]) && echo "production" || echo "staging")
1616 npm run build
1717deploy :
1818- provider : gae
1919 skip_cleanup : true
20- keyfile : client-secret -staging.json
20+ keyfile : service-account -staging.json
2121 project : unpkg-staging
2222 on :
2323 branch : gae-staging
24+ - provider : gae
25+ skip_cleanup : true
26+ keyfile : service-account.json
27+ project : unpkg-gcp
28+ on :
29+ branch : gae
2430- provider : script
2531 skip_cleanup : true
2632 script : $(npm bin -g)/firebase deploy --project unpkg-staging --message "https://travis-ci.org/$TRAVIS_REPO_SLUG/builds/$TRAVIS_BUILD_ID"
You can’t perform that action at this time.
0 commit comments