Add deploy from gae branch

This commit is contained in:
Michael Jackson 2019-01-26 21:30:01 -08:00
parent ddc02153ed
commit e59f12861a
3 changed files with 10 additions and 3 deletions

3
.gitignore vendored
View File

@ -4,10 +4,11 @@ firebase-debug.log*
npm-debug.log*
/.env
/client-secret-staging.json
/node_modules/
/public/_client/
/secrets.tar
/secret_key
/server.js
/service-account-staging.json
/service-account.json
/tokens/

View File

@ -12,15 +12,21 @@ before_install:
- tar xvf secrets.tar
script:
- npm run lint
- NODE_ENV=$([ "$TRAVIS_BRANCH" == "master" ] && echo "production" || echo "staging")
- NODE_ENV=$(([ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_BRANCH" == "gae" ]) && echo "production" || echo "staging")
npm run build
deploy:
- provider: gae
skip_cleanup: true
keyfile: client-secret-staging.json
keyfile: service-account-staging.json
project: unpkg-staging
on:
branch: gae-staging
- provider: gae
skip_cleanup: true
keyfile: service-account.json
project: unpkg-gcp
on:
branch: gae
- provider: script
skip_cleanup: true
script: $(npm bin -g)/firebase deploy --project unpkg-staging --message "https://travis-ci.org/$TRAVIS_REPO_SLUG/builds/$TRAVIS_BUILD_ID"

Binary file not shown.