Skip to content

Commit 2e4f5be

Browse files
committed
add ci and firebase
1 parent 14980fb commit 2e4f5be

File tree

8 files changed

+197
-0
lines changed

8 files changed

+197
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
index.html,1763488930438,67a4387d4b863e0d4776183518bb86b2cba4e0fd02353bf49630597afd7486ee
2+
favicon.svg,1763488930337,11f7bbcc36bf2f54c31744264fa1b24a0811ed62e4d26d5b18d3b2dec99040a7
3+
404.html,1763488930337,b6abfbdc894d37c260154e281499dc6415bb6ad76b32f01ef94dee93aa897ac4
4+
_astro/instagramLogo.D7WlRHr8.png,1763488930418,27dfa605d12abd695d47abb150188df060e4fac0566249a4e93b663a73dd48c8
5+
_astro/ucatec.BSokkFSc.png,1763488930418,bb168c3bbbe3ddc32448440280da6d0fb9cc663ae58c772aef7b2e6dfe381f97
6+
_astro/favorcito.CunQnk9T.png,1763488930418,5f6e81feed48e6e1fdb735be1646bcc466bd01d69b866915d0484d2a3c907bbf
7+
_astro/youtubeLogo.DVSRm5cB.png,1763488930418,1c5c9e2aeb0f7ce3b2206320ffac5d2c4d12b58517b5123b318d3905c67bf862
8+
_astro/meru.COtYMUPh.png,1763488930419,bd58c4a9a32e3153d29d626843aa503925e0098f8190e133fe8ac33ae4af8409
9+
_astro/delve.Cy3X4bDc.png,1763488930419,d2d54349158adca6cb36d7e25013fbafcff6ea9e26449679cfd78153a40754fa
10+
_astro/Logo-Devfest2025.yIMy8xsK.png,1763488930419,7f198721812eb1698657113fdd20f99aa317f95e0b35b3d9f10ebd8769a4522c
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
index.html,1763488731857,a5c28d6f57cecc7af6771ad312a3224fd284c24b7c2404853ac62940993fcc77
2+
favicon.svg,1763485356825,11f7bbcc36bf2f54c31744264fa1b24a0811ed62e4d26d5b18d3b2dec99040a7
3+
404.html,1763488731438,b6abfbdc894d37c260154e281499dc6415bb6ad76b32f01ef94dee93aa897ac4

β€Ž.firebasercβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "devfest-2e775"
4+
}
5+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file was auto-generated by the Firebase CLI
2+
# https://github.com/firebase/firebase-tools
3+
4+
name: Deploy to Firebase Hosting on merge
5+
on:
6+
push:
7+
branches:
8+
- master
9+
jobs:
10+
build_and_deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- run: npm ci && npm run build
15+
- uses: FirebaseExtended/action-hosting-deploy@v0
16+
with:
17+
repoToken: ${{ secrets.GITHUB_TOKEN }}
18+
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_DEVFEST_2E775 }}
19+
channelId: live
20+
projectId: devfest-2e775
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This file was auto-generated by the Firebase CLI
2+
# https://github.com/firebase/firebase-tools
3+
4+
name: Deploy to Firebase Hosting on PR
5+
on: pull_request
6+
permissions:
7+
checks: write
8+
contents: read
9+
pull-requests: write
10+
jobs:
11+
build_and_preview:
12+
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- run: npm ci && npm run build
17+
- uses: FirebaseExtended/action-hosting-deploy@v0
18+
with:
19+
repoToken: ${{ secrets.GITHUB_TOKEN }}
20+
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_DEVFEST_2E775 }}
21+
projectId: devfest-2e775

β€Žfirebase.jsonβ€Ž

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"hosting": {
3+
"public": "dist",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
],
9+
"rewrites": [
10+
{
11+
"source": "**",
12+
"destination": "/index.html"
13+
}
14+
]
15+
}
16+
}

β€Žpublic/404.htmlβ€Ž

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<title>Page Not Found</title>
7+
8+
<style media="screen">
9+
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
10+
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px 16px; border-radius: 3px; }
11+
#message h3 { color: #888; font-weight: normal; font-size: 16px; margin: 16px 0 12px; }
12+
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; }
13+
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;}
14+
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; }
15+
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; }
16+
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
17+
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; }
18+
@media (max-width: 600px) {
19+
body, #message { margin-top: 0; background: white; box-shadow: none; }
20+
body { border-top: 16px solid #ffa100; }
21+
}
22+
</style>
23+
</head>
24+
<body>
25+
<div id="message">
26+
<h2>404</h2>
27+
<h1>Page Not Found</h1>
28+
<p>The specified file was not found on this website. Please check the URL for mistakes and try again.</p>
29+
<h3>Why am I seeing this?</h3>
30+
<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>
31+
</div>
32+
</body>
33+
</html>

β€Žpublic/index.htmlβ€Ž

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<title>Welcome to Firebase Hosting</title>
7+
8+
<!-- update the version number as needed -->
9+
<script defer src="/__/firebase/12.6.0/firebase-app-compat.js"></script>
10+
<!-- include only the Firebase features as you need -->
11+
<script defer src="/__/firebase/12.6.0/firebase-auth-compat.js"></script>
12+
<script defer src="/__/firebase/12.6.0/firebase-database-compat.js"></script>
13+
<script defer src="/__/firebase/12.6.0/firebase-firestore-compat.js"></script>
14+
<script defer src="/__/firebase/12.6.0/firebase-functions-compat.js"></script>
15+
<script defer src="/__/firebase/12.6.0/firebase-messaging-compat.js"></script>
16+
<script defer src="/__/firebase/12.6.0/firebase-storage-compat.js"></script>
17+
<script defer src="/__/firebase/12.6.0/firebase-analytics-compat.js"></script>
18+
<script defer src="/__/firebase/12.6.0/firebase-remote-config-compat.js"></script>
19+
<script defer src="/__/firebase/12.6.0/firebase-performance-compat.js"></script>
20+
<!--
21+
initialize the SDK after all desired features are loaded, set useEmulator to false
22+
to avoid connecting the SDK to running emulators.
23+
-->
24+
<script defer src="/__/firebase/init.js?useEmulator=true"></script>
25+
26+
<style media="screen">
27+
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
28+
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px; border-radius: 3px; }
29+
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; }
30+
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;}
31+
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; }
32+
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; }
33+
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
34+
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; }
35+
@media (max-width: 600px) {
36+
body, #message { margin-top: 0; background: white; box-shadow: none; }
37+
body { border-top: 16px solid #ffa100; }
38+
}
39+
</style>
40+
</head>
41+
<body>
42+
<div id="message">
43+
<h2>Welcome</h2>
44+
<h1>Firebase Hosting Setup Complete</h1>
45+
<p>You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!</p>
46+
<a target="_blank" href="https://firebase.google.com/docs/hosting/">Open Hosting Documentation</a>
47+
</div>
48+
<p id="load">Firebase SDK Loading&hellip;</p>
49+
50+
<script>
51+
document.addEventListener('DOMContentLoaded', function() {
52+
const loadEl = document.querySelector('#load');
53+
// // πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯
54+
// // The Firebase SDK is initialized and available here!
55+
//
56+
// firebase.auth().onAuthStateChanged(user => { });
57+
// firebase.database().ref('/path/to/ref').on('value', snapshot => { });
58+
// firebase.firestore().doc('/foo/bar').get().then(() => { });
59+
// firebase.functions().httpsCallable('yourFunction')().then(() => { });
60+
// firebase.messaging().requestPermission().then(() => { });
61+
// firebase.storage().ref('/path/to/ref').getDownloadURL().then(() => { });
62+
// firebase.analytics(); // call to activate
63+
// firebase.analytics().logEvent('tutorial_completed');
64+
// firebase.performance(); // call to activate
65+
//
66+
// // πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯πŸ”₯
67+
68+
try {
69+
let app = firebase.app();
70+
let features = [
71+
'auth',
72+
'database',
73+
'firestore',
74+
'functions',
75+
'messaging',
76+
'storage',
77+
'analytics',
78+
'remoteConfig',
79+
'performance',
80+
].filter(feature => typeof app[feature] === 'function');
81+
loadEl.textContent = `Firebase SDK loaded with ${features.join(', ')}`;
82+
} catch (e) {
83+
console.error(e);
84+
loadEl.textContent = 'Error loading the Firebase SDK, check the console.';
85+
}
86+
});
87+
</script>
88+
</body>
89+
</html>

0 commit comments

Comments
Β (0)