Skip to content

initial commit

initial commit #1

# 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:
- master
jobs:
hosting:
name: Build and deploy Hosting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci && npm run build
working-directory: client
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
# Replace the secret below after Deploying the Firebase the first time
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT<FIX:SECRET_NAME> }}"

Check failure on line 21 in .github/workflows/firebase-hosting-merge.yml

View workflow run for this annotation

GitHub Actions / Deploy to Firebase Hosting on merge

Invalid workflow file

The workflow is not valid. .github/workflows/firebase-hosting-merge.yml (Line: 21, Col: 35): Unexpected symbol: 'FIX:SECRET_NAME'. Located at position 34 within expression: secrets.FIREBASE_SERVICE_ACCOUNT<FIX:SECRET_NAME> .github/workflows/firebase-hosting-merge.yml (Line: 39, Col: 14): Unexpected symbol: 'FIX:SECRET_NAME'. Located at position 34 within expression: secrets.FIREBASE_SERVICE_ACCOUNT<FIX:SECRET_NAME>
channelId: live
projectId: <FIX:FIREBASE_PROJECT>
functions:
name: Build and deploy Functions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
cache: npm
cache-dependency-path: "functions/package-lock.json"
- name: Build
working-directory: functions
run: npm ci
- name: Create SA key
# Replace the secret below after Deploying the Firebase the first time
run: echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT<FIX:SECRET_NAME> }}' > $HOME/gcloud.json
- name: Deploy Cloud Functions
run: export GOOGLE_APPLICATION_CREDENTIALS=$HOME/gcloud.json && npx firebase-tools deploy --only functions --json
configs:
name: Deploy configs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create SA key
# Replace the secret below after Deploying the Firebase the first time
run: echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT<FIX:SECRET_NAME> }}' > $HOME/gcloud.json
- name: Deploy Configs
run: export GOOGLE_APPLICATION_CREDENTIALS=$HOME/gcloud.json && npx firebase-tools deploy --only remoteconfig,firestore,storage --json