-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Deploy on Firebase | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy_to_live: | ||
name: Deploy on Firebase | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: [18] | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
# - name: Install Yarn | ||
# run: npm install yarn@latest -g | ||
- name: Install Firebase Tools | ||
run: npm install firebase-tools -g | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Run build | ||
run: npm run build | ||
- name: Run deploy | ||
env: | ||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | ||
run: firebase deploy --only hosting:${{ secrets.FIREBASE_HOSTING_ID }} -P ${{ secrets.FIREBASE_PROJECT_ID }} |
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,31 @@ | ||
[debug] [2023-08-18T05:17:43.353Z] ---------------------------------------------------------------------- | ||
[debug] [2023-08-18T05:17:43.355Z] Command: /home/imabhisht/.nvm/versions/node/v18.17.0/bin/node /home/imabhisht/.nvm/versions/node/v18.17.0/bin/firebase login:ci | ||
[debug] [2023-08-18T05:17:43.356Z] CLI Version: 12.4.6 | ||
[debug] [2023-08-18T05:17:43.356Z] Platform: linux | ||
[debug] [2023-08-18T05:17:43.356Z] Node Version: v18.17.0 | ||
[debug] [2023-08-18T05:17:43.362Z] Time: Fri Aug 18 2023 10:47:43 GMT+0530 (India Standard Time) | ||
[debug] [2023-08-18T05:17:43.363Z] ---------------------------------------------------------------------- | ||
[debug] | ||
[warn] ⚠ Authenticating with a `login:ci` token is deprecated and will be removed in a future major version of `firebase-tools`. Instead, use a service account key with `GOOGLE_APPLICATION_CREDENTIALS`: https://cloud.google.com/docs/authentication/getting-started | ||
[info] | ||
[info] Visit this URL on this device to log in: | ||
[info] https://accounts.google.com/o/oauth2/auth?client_id=563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com&scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudplatformprojects.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffirebase%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform&response_type=code&state=695972482&redirect_uri=http%3A%2F%2Flocalhost%3A9005 | ||
[info] | ||
[info] Waiting for authentication... | ||
[debug] [2023-08-18T05:18:00.159Z] >>> [apiv2][query] POST https://accounts.google.com/o/oauth2/token [none] | ||
[debug] [2023-08-18T05:18:00.161Z] >>> [apiv2][body] POST https://accounts.google.com/o/oauth2/token [omitted] | ||
[debug] [2023-08-18T05:18:01.565Z] <<< [apiv2][status] POST https://accounts.google.com/o/oauth2/token 200 | ||
[debug] [2023-08-18T05:18:01.565Z] <<< [apiv2][body] POST https://accounts.google.com/o/oauth2/token [omitted] | ||
[info] | ||
[info] ✔ Success! Use this token to login on a CI server: | ||
|
||
1//0gZCajCK7pBcRCgYIARAAGBASNwF-L9IrCNOMCNUKz4rKloGMT61lU_pFa4351ogMMkpRwiUtdWYMNNwCcPEDSK32wg6tJV7QU-8 | ||
|
||
Example: firebase deploy --token "$FIREBASE_TOKEN" | ||
|
||
[debug] [2023-08-18T05:18:06.975Z] Error: Timed out. | ||
at Timeout._onTimeout (/home/imabhisht/.nvm/versions/node/v18.17.0/lib/node_modules/firebase-tools/lib/utils.js:254:49) | ||
at listOnTimeout (node:internal/timers:569:17) | ||
at process.processTimers (node:internal/timers:512:7) | ||
[error] | ||
[error] Error: An unexpected error has occurred. |