Apply command firebase login:ci
name: Build and deploy
on:
push:
branches: [ main ]
# Run workflow manually
workflow_dispatch:
jobs:
build:
name: Build & Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@main
- name: Install dependencies
run: npm ci
- name: Build dependencies
run: npm run build
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}