Pre-rendered views and assets to Firebase Hosting, non-pre-rendered views SSRed with Cloud Functions and cached (acting like ISG).
- Create a service account for your Firebase project directly on Google Cloud Platform;
- Generate and download a JSON key for the created account;
- Add a secret to your GitHub repository with name
GCP_ACCOUNT_KEYand paste the key JSON;
- Copy new build and deploy GitHub Actions workflow from
.github/workflows/.firebase/build-and-deploy.ymlto.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"