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* npm-debug.log*
/.env /.env
/client-secret-staging.json
/node_modules/ /node_modules/
/public/_client/ /public/_client/
/secrets.tar /secrets.tar
/secret_key /secret_key
/server.js /server.js
/service-account-staging.json
/service-account.json
/tokens/ /tokens/

View File

@ -12,15 +12,21 @@ before_install:
- tar xvf secrets.tar - tar xvf secrets.tar
script: script:
- npm run lint - 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 npm run build
deploy: deploy:
- provider: gae - provider: gae
skip_cleanup: true skip_cleanup: true
keyfile: client-secret-staging.json keyfile: service-account-staging.json
project: unpkg-staging project: unpkg-staging
on: on:
branch: gae-staging branch: gae-staging
- provider: gae
skip_cleanup: true
keyfile: service-account.json
project: unpkg-gcp
on:
branch: gae
- provider: script - provider: script
skip_cleanup: true skip_cleanup: true
script: $(npm bin -g)/firebase deploy --project unpkg-staging --message "https://travis-ci.org/$TRAVIS_REPO_SLUG/builds/$TRAVIS_BUILD_ID" 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.