initial commit #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 GitHub Actions / Deploy to Firebase Hosting on mergeInvalid workflow file
|
||
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 |