Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Deploy Storefront to Firebase

Pre-rendered views and assets to Firebase Hosting, non-pre-rendered views SSRed with Cloud Functions and cached (acting like ISG).

Getting started

  1. Create a service account for your Firebase project directly on Google Cloud Platform;
  2. Generate and download a JSON key for the created account;
  3. Add a secret to your GitHub repository with name GCP_ACCOUNT_KEY and paste the key JSON;

Prepare CI files

  1. Copy new build and deploy GitHub Actions workflow from .github/workflows/.firebase/build-and-deploy.yml to .github/workflows/build-and-deploy.yml;
mv ./.github/workflows/.firebase/build-and-deploy.yml ./.github/workflows/build-and-deploy.yml
echo "true" > ./.github/firebase-deploy
git add ./.github
git commit -m "ci(build-and-deploy): deploy to firebase"