Skip to content

hide section

hide section #45

Workflow file for this run

name: Deploy to Firebase Hosting
on:
push:
branches:
- main
env:
FIREBASE_PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }}
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
FIREBASE_DATABASE_URL: ${{ secrets.FIREBASE_DATABASE_URL }}
FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install firebase
run: npm install -g firebase-tools
- name: Install dependencies
run: npm install
- name: Build Next.js app
run: npm run build
- name: Deploy to Firebase Hosting
run: firebase deploy --project $FIREBASE_PROJECT_ID --token $FIREBASE_TOKEN