Skip to content

Commit

Permalink
adding new database & hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
itsoliviasparks committed Nov 19, 2023
1 parent deb0788 commit 8a42eb3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install && npm run build
- uses: actions/checkout@v3
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TCL_22_SHOPPING_LIST }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TCL_22_SMART_SHOPPING_LIST }}'
channelId: live
projectId: tcl-22-shopping-list
env:
FIREBASE_CLI_PREVIEWS: hostingchannels
projectId: tcl-22-smart-shopping-list
11 changes: 5 additions & 6 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ name: Deploy to Firebase Hosting on PR
'on': pull_request
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install && npm run build
- uses: actions/checkout@v3
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TCL_22_SHOPPING_LIST }}'
projectId: tcl-22-shopping-list
env:
FIREBASE_CLI_PREVIEWS: hostingchannels
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TCL_22_SMART_SHOPPING_LIST }}'
projectId: tcl-22-smart-shopping-list
12 changes: 6 additions & 6 deletions src/lib/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import 'firebase/firestore';
// Initalize Firebase.
// These details will need to be replaced with the project specific env vars at the start of each new cohort.
var firebaseConfig = {
apiKey: 'AIzaSyA0UVyQeViBUArtY0kfWxkD3TzhoSnVfcw',
authDomain: 'tcl-22-shopping-list.firebaseapp.com',
projectId: 'tcl-22-shopping-list',
storageBucket: 'tcl-22-shopping-list.appspot.com',
messagingSenderId: '908757844017',
appId: '1:908757844017:web:27af0d8875560207361510',
apiKey: 'AIzaSyAa8sRqomXUfeBDAKB9t3Dnq9uQup9E5cE',
authDomain: 'tcl-22-smart-shopping-list.firebaseapp.com',
projectId: 'tcl-22-smart-shopping-list',
storageBucket: 'tcl-22-smart-shopping-list.appspot.com',
messagingSenderId: '116137204814',
appId: '1:116137204814:web:e090827ae2837258b0371f',
};

let fb = firebase.initializeApp(firebaseConfig);
Expand Down

0 comments on commit 8a42eb3

Please sign in to comment.