Skip to content

Update .gitignore and hopefully push old changes? #16

Update .gitignore and hopefully push old changes?

Update .gitignore and hopefully push old changes? #16

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on merge
on:
push:
branches:
- main
permissions:
contents: read
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Inject Firebase config into ts_fas_acih.js
run: |
sed -i \
-e 's|apiKey: ".*"|apiKey: "${{ secrets.FIREBASE_API_KEY }}"|' \
-e 's|authDomain: ".*"|authDomain: "${{ secrets.FIREBASE_AUTH_DOMAIN }}"|' \
-e 's|databaseURL: ".*"|databaseURL: "${{ secrets.FIREBASE_DATABASE_URL }}"|' \
-e 's|projectId: ".*"|projectId: "${{ secrets.FIREBASE_PROJECT_ID }}"|' \
-e 's|storageBucket: ".*"|storageBucket: "${{ secrets.FIREBASE_STORAGE_BUCKET }}"|' \
-e 's|messagingSenderId: ".*"|messagingSenderId: "${{ secrets.FIREBASE_MESSAGING_SENDER_ID }}"|' \
-e 's|appId: ".*"|appId: "${{ secrets.FIREBASE_APP_ID }}"|' \
-e 's|measurementId: ".*"|measurementId: "${{ secrets.FIREBASE_MEASUREMENT_ID }}"|' \
./assets/js/ts_fas_acih.js
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CHAT_TRANSSOCIAL_TEST }}
channelId: live
projectId: chat-transsocial-test