Skip to content

Commit e59f128

Browse files
committed
Add deploy from gae branch
1 parent ddc0215 commit e59f128

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ firebase-debug.log*
44
npm-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/

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,21 @@ before_install:
1212
- tar xvf secrets.tar
1313
script:
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
1717
deploy:
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"

secrets.tar.enc

4 KB
Binary file not shown.

0 commit comments

Comments
 (0)