This repository has been archived by the owner on Oct 26, 2024. It is now read-only.
Remove realtime db config from FB #97
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
name: Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: 'npm' | |
- name: Create temp serviceAccount.json | |
run: echo "{}" > serviceAccount.json | |
- run: npm ci | |
- run: npm run build | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
# See docs/tutorials/04-deploy.md for configuring these | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SUNNYTECHWEBSITE }}' | |
projectId: sunnytechwebsite | |
# live is the default production channel of Firebase hosting | |
channelId: live |