forked from ReactiveX/rxjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(build): deploy docs to firebase on publish (ReactiveX#3881)
- Loading branch information
1 parent
1a9b13e
commit eb42a60
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
readonly projectId=rxjs-dev | ||
readonly deployedUrl=https://rxjs-dev.firebaseapp.com | ||
readonly firebaseToken=$FIREBASE_TOKEN | ||
|
||
# Deploy | ||
( | ||
cd "`dirname $0`/.." | ||
|
||
# Build the app | ||
npm run build --env=stable | ||
|
||
# Include any mode-specific files | ||
cp -rf src/extra-files/$deployEnv/. dist/ | ||
|
||
# Deploy to Firebase | ||
npm run firebase -- login | ||
npm run firebase -- use "$projectId" | ||
npm run firebase -- deploy --message "Deploy docs automatically" --non-interactive | ||
npm run firebase -- logout | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters