Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Firebase Deployment
- **Step 1: Get Token**
- Generate the firebase token from your terminal using the command `$ firebase login:ci`
- > Waiting for authentication...
- >
- > ✔ Success! Use this token to login on a CI server:
- >
- > 1/VXXXXXXX--YOUR-FIREBASE-CI-TOKEN--XXXXXh92o
- >
- > Example: firebase deploy --token "$FIREBASE_TOKEN"
- **Step 2: Setup Variable**
- GitLab Repo -> Settings -> CI/CD -> Secret Variables -> Add the below
- > Key: FIREBASE_TOKEN
- >
- > Value: 1/VXXXXXXX--YOUR-FIREBASE-CI-TOKEN--XXXXXh92o
- **Note:**
- - Replace the `<project-name>` with your firebase project name
- - Entire `cache:` block and `yarn`, `yarn run build` scripts (Line no: 6-9, 16-17) are not needed for non node projects like simple webpages having no package.json
Add Comment
Please, Sign In to add comment