ci(aio): convert deploy-staging
to a shell script
This commit is contained in:

committed by
Pete Bacon Darwin

parent
2535769a65
commit
a73050de48
18
aio/scripts/deploy-staging.sh
Normal file
18
aio/scripts/deploy-staging.sh
Normal file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# WARNING: FIREBASE_TOKEN should NOT be printed.
|
||||
set +x -eu -o pipefail
|
||||
|
||||
|
||||
FIREBASE_PROJECT_ID=aio-staging
|
||||
|
||||
cd "`dirname $0`/.."
|
||||
|
||||
# Build the app
|
||||
yarn build
|
||||
|
||||
# Deploy to staging
|
||||
firebase use "$FIREBASE_PROJECT_ID" --token "$FIREBASE_TOKEN"
|
||||
firebase deploy --message "Commit: $TRAVIS_COMMIT" --non-interactive --token "$FIREBASE_TOKEN"
|
||||
|
||||
cd -
|
Reference in New Issue
Block a user