Commit e26c741
authored
Add Firebase hosting preview environment for PRs (#371)
* Add Firebase hosting preview environment for PRs
Add a new GitHub Actions workflow to deploy to Firebase hosting preview environment on PR.
* Create a new workflow file `.github/workflows/deploy-preview.yaml`.
* Set the workflow to trigger on pull requests.
* Use the Firebase hosting deploy action to deploy to the preview environment.
* Configure the PR environment to live for 7 days using the `expires` parameter.
* Update the `uses` action to the correct versions.
* Utilize `yarn` instead of `npm` for installing dependencies and building the project.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/cohstats/coh2stats?shareId=XXXX-XXXX-XXXX-XXXX).
* Update deploy-preview.yaml
* Update deploy-preview.yaml
* Prettier1 parent 87191b3 commit e26c741
1 file changed
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments