Skip to content

Commit

Permalink
Firebase hosting configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Xoka74 committed Apr 2, 2024
1 parent c29d217 commit 4ffdf32
Show file tree
Hide file tree
Showing 7 changed files with 111 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .firebase/hosting.YnVpbGQ.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
asset-manifest.json,1712091497788,7a5330fab8f881817c1f8d0b6cd729e0f18f5d01fad39673b3da839979451987
index.html,1712091497788,ba8fbbe11ef85f5effbce8dd2404f86982d99a101ae533ad8fc37a8da44ada0a
404.html,1712091490983,05cbc6f94d7a69ce2e29646eab13be2c884e61ba93e3094df5028866876d18b3
favicon.ico,1712091490983,b72f7455f00e4e58792d2bca892abb068e2213838c0316d6b7a0d6d16acd1955
static/css/main.e6c13ad2.css,1712091497791,3e50f5e92915159fd2c8de23f1536cfb9f445223478cfa70edb3a6fbfe5dbf03
static/css/main.e6c13ad2.css.map,1712091497791,d99304e41fcd2e6d3aadd9df8d45fbb4b7935a1f7a03b1a272a8f0477725a7fa
logo192.png,1712091490983,caff018b7f1e8fd481eb1c50d75b0ef236bcd5078b1d15c8bb348453fee30293
static/js/453.0dcc8e53.chunk.js,1712091497791,b32687427e57b13a635074e0b8704146d3cc1dd98928e2d76ad13859e283a4ef
static/js/main.065a28d2.js.LICENSE.txt,1712091497791,4b8d05ec1f8198b515872a36ab8ab32c4c5cff8237fcdfee4b612af4d7519b1f
robots.txt,1712091490985,391d14b3c2f8c9143a27a28c7399585142228d4d1bdbe2c87ac946de411fa9a2
manifest.json,1712091490984,341d52628782f8ac9290bbfc43298afccb47b7cbfcee146ae30cf0f46bc30900
static/js/453.0dcc8e53.chunk.js.map,1712091497791,8436bf38041235a39364e326854d98f31ae9605baa41de080ac5478948e39654
logo512.png,1712091490984,191fc21360b4ccfb1cda11a1efb97f489ed22672ca83f4064316802bbfdd750e
static/js/main.065a28d2.js,1712091497791,3ccf8a501488d9e8d3c44ed297fdd06e5f3611e66766594a4d3002a11b93c558
static/js/main.065a28d2.js.map,1712091497791,ea631396e9647c638c4cac54a46945a959b07bacb6f0d9244a9ff4cfa32cac44
7 changes: 7 additions & 0 deletions .firebase/hosting.cHVibGlj.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
404.html,1712091103465,05cbc6f94d7a69ce2e29646eab13be2c884e61ba93e3094df5028866876d18b3
index.html,1711984701676,abb5524b04fc5bb93ff087cd3ab7fdcbd7bd621a5226ce5b14226aa3a401d15e
favicon.ico,1711984701676,b72f7455f00e4e58792d2bca892abb068e2213838c0316d6b7a0d6d16acd1955
logo192.png,1711984701676,caff018b7f1e8fd481eb1c50d75b0ef236bcd5078b1d15c8bb348453fee30293
manifest.json,1711984701677,341d52628782f8ac9290bbfc43298afccb47b7cbfcee146ae30cf0f46bc30900
logo512.png,1711984701677,191fc21360b4ccfb1cda11a1efb97f489ed22672ca83f4064316802bbfdd750e
robots.txt,1711984701677,391d14b3c2f8c9143a27a28c7399585142228d4d1bdbe2c87ac946de411fa9a2
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "betonchel-web"
}
}
20 changes: 20 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BETONCHEL_WEB }}'
channelId: live
projectId: betonchel-web
21 changes: 21 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
'on': pull_request
permissions:
checks: write
contents: read
pull-requests: write
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BETONCHEL_WEB }}'
projectId: betonchel-web
10 changes: 10 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}
33 changes: 33 additions & 0 deletions public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page Not Found</title>

<style media="screen">
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px 16px; border-radius: 3px; }
#message h3 { color: #888; font-weight: normal; font-size: 16px; margin: 16px 0 12px; }
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; }
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;}
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; }
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; }
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; }
@media (max-width: 600px) {
body, #message { margin-top: 0; background: white; box-shadow: none; }
body { border-top: 16px solid #ffa100; }
}
</style>
</head>
<body>
<div id="message">
<h2>404</h2>
<h1>Page Not Found</h1>
<p>The specified file was not found on this website. Please check the URL for mistakes and try again.</p>
<h3>Why am I seeing this?</h3>
<p>This page was generated by the Firebase Command-Line Interface. To modify it, edit the <code>404.html</code> file in your project's configured <code>public</code> directory.</p>
</div>
</body>
</html>

0 comments on commit 4ffdf32

Please sign in to comment.