Skip to content

Commit

Permalink
update firebase config and set up hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
djtaylor8 committed Nov 26, 2023
1 parent 097a12f commit babed47
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ jobs:
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TCL_23_SHOPPING_LIST }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TCL_23_SMART_SHOPPING_LIST }}'
channelId: live
projectId: tcl-23-shopping-list
env:
FIREBASE_CLI_PREVIEWS: hostingchannels
projectId: tcl-23-smart-shopping-list
7 changes: 3 additions & 4 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ 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@v3
Expand All @@ -15,7 +16,5 @@ jobs:
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TCL_23_SHOPPING_LIST }}'
projectId: tcl-23-shopping-list
env:
FIREBASE_CLI_PREVIEWS: hostingchannels
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TCL_23_SMART_SHOPPING_LIST }}'
projectId: tcl-23-smart-shopping-list
13 changes: 6 additions & 7 deletions src/lib/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ import 'firebase/firestore';

// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: 'AIzaSyB-RVe8Icisr03G002oOc9Un7GXFjIKe-M',
authDomain: 'tcl-23-shopping-list.firebaseapp.com',
databaseURL: 'https://tcl-23-shopping-list-default-rtdb.firebaseio.com',
projectId: 'tcl-23-shopping-list',
storageBucket: 'tcl-23-shopping-list.appspot.com',
messagingSenderId: '17231198664',
appId: '1:17231198664:web:180626daef3992d3cfe8fd',
apiKey: 'AIzaSyDSkQvP2IbPPeIcCw9SfsYPWa80HH7Ee7Q',
authDomain: 'tcl-23-smart-shopping-list.firebaseapp.com',
projectId: 'tcl-23-smart-shopping-list',
storageBucket: 'tcl-23-smart-shopping-list.appspot.com',
messagingSenderId: '52323845240',
appId: '1:52323845240:web:d46ea8eabee282dbc5998d',
};

// Firebase configuration for the App
Expand Down

0 comments on commit babed47

Please sign in to comment.