{"repo":"FirebaseExtended/action-hosting-deploy","free":true,"listed":false,"github":"https://github.com/FirebaseExtended/action-hosting-deploy","clone":"git clone https://github.com/FirebaseExtended/action-hosting-deploy.git","description":"Automatically deploy shareable previews for your Firebase Hosting sites","language":"TypeScript","stars":806,"topics":["firebase","continuous-deployment","github-actions","firebase-hosting"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"🔥🌎 Firebase Hosting GitHub Action - Creates a new preview channel (and its associated preview URL) for every PR on your GitHub repository. - Adds a comment to the PR with the preview URL so that you and each reviewer can view and test the PR's changes in a \"preview\" version of your app. - Updates the preview URL with changes from each commit by automatically deploying to the associated preview channel. The URL doesn't change with each new commit. - (Optional) Deploys the current state of your GitHub repo to your live channel when the PR is merged. Setup A full setup guide can be found in the Firebase Hosting docs. The Firebase CLI can get you set up quickly with a default configuration. - If you've NOT set up Hosting, run this version of the command from the root of your local directory: - If you've ALREADY set up Hosting, then you just need to set up the GitHub Action part of Hosting. Run this version of the command from the root of your local directory: Usage Deploy to a new preview channel for every PR Add a workflow ( .github/workflows/deploy-preview.yml ): Deploy to your live channel on merge Add a workflow ( .github/workflows/deploy-prod.yml ): Options firebaseServiceAccount {string} (required) This is a service account JSON key. The easiest way to set it up is to run firebase init hosting:github . However, it can also be created manually. It's important to store this token as an encrypted secret to prevent unintended access to your Firebase project. Set it in the \"Se","default_branch":null,"files":null,"tree":[],"storefront":"/r/FirebaseExtended","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/FirebaseExtended/action-hosting-deploy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}