Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
aniketsharma00411 committed Feb 25, 2024
2 parents 6d2f6d1 + 021ec2f commit c242dce
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 40 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: perl -pi -e 's/API_KEY_HERE/$ENV{API_KEY}/g' src/environments/environment.ts
env:
API_KEY: ${{ secrets.API_KEY }}
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: perl -pi -e 's/API_KEY_HERE/$ENV{API_KEY}/g' src/environments/environment.ts
env:
API_KEY: ${{ secrets.API_KEY }}
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
Expand Down
52 changes: 12 additions & 40 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -1,40 +1,12 @@
// // Import the functions you need from the SDKs you need
// import { initializeApp } from "firebase/app";
// import { getAnalytics } from "firebase/analytics";
// import { FirebaseApp } from "@angular/fire/app";

// // TODO: Add SDKs for Firebase products that you want to use
// // https://firebase.google.com/docs/web/setup#available-libraries

// // Your web app's Firebase configuration
// // For Firebase JS SDK v7.20.0 and later, measurementId is optional
// const firebaseConfig = {
// apiKey: "AIzaSyCxCrEToYQ_kWzlISUAykJsLyfdbfGekQE",
// authDomain: "tutorai00411.firebaseapp.com",
// projectId: "tutorai00411",
// storageBucket: "tutorai00411.appspot.com",
// messagingSenderId: "558613703319",
// appId: "1:558613703319:web:fc160e8ecc18f8f3e9d7d2",
// measurementId: "G-0MD4P25TSE"
// };

// // Initialize Firebase

// const analytics = getAnalytics(app);
// const auth = getAuth(app);
// const googleProvider = new GoogleAuthProvider();
// const facebookProvider = new FacebookAuthProvider();


// export const environment = {
// production: true,
// firebaseConfig: {
// apiKey: "AIzaSyCxCrEToYQ_kWzlISUAykJsLyfdbfGekQE",
// authDomain: "tutorai00411.firebaseapp.com",
// projectId: "tutorai00411",
// storageBucket: "tutorai00411.appspot.com",
// messagingSenderId: "558613703319",
// appId: "1:558613703319:web:fc160e8ecc18f8f3e9d7d2",
// }
// };

const api_key = "API_KEY_NAME";
export const environment = {
production: false,
firebaseConfig: {
apiKey: api_key,
authDomain: "tutorai00411.firebaseapp.com",
projectId: "tutorai00411",
storageBucket: "tutorai00411.appspot.com",
messagingSenderId: "558613703319",
appId: "1:558613703319:web:fc160e8ecc18f8f3e9d7d2",
}
};

0 comments on commit c242dce

Please sign in to comment.