From 17ccbc0a825ac44508a8fc7e015cdb5d1acf9274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arvid=20St=C3=A5hl=20Str=C3=B6mberg?= Date: Sat, 14 Jun 2025 12:13:20 +0200 Subject: [PATCH] firebase --- .github/workflows/2-json-parser.yml | 6 ++ src/2-json-parser/ts/.firebaserc | 5 ++ src/2-json-parser/ts/firebase.json | 10 +++ src/2-json-parser/ts/public/404.html | 33 ++++++++++ src/2-json-parser/ts/public/index.html | 89 ++++++++++++++++++++++++++ 5 files changed, 143 insertions(+) create mode 100644 src/2-json-parser/ts/.firebaserc create mode 100644 src/2-json-parser/ts/firebase.json create mode 100644 src/2-json-parser/ts/public/404.html create mode 100644 src/2-json-parser/ts/public/index.html diff --git a/.github/workflows/2-json-parser.yml b/.github/workflows/2-json-parser.yml index 0ad250b..11e3b09 100644 --- a/.github/workflows/2-json-parser.yml +++ b/.github/workflows/2-json-parser.yml @@ -36,4 +36,10 @@ jobs: - name: Test run: pnpm run test working-directory: src/2-json-parser/ts + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: ${{ secrets.GITHUB_TOKEN }} + firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CODINGCHALLENGES_2_JSON_9425A }} + channelId: live + projectId: codingchallenges-2-json-9425a diff --git a/src/2-json-parser/ts/.firebaserc b/src/2-json-parser/ts/.firebaserc new file mode 100644 index 0000000..ffbb277 --- /dev/null +++ b/src/2-json-parser/ts/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "codingchallenges-2-json-9425a" + } +} diff --git a/src/2-json-parser/ts/firebase.json b/src/2-json-parser/ts/firebase.json new file mode 100644 index 0000000..e782939 --- /dev/null +++ b/src/2-json-parser/ts/firebase.json @@ -0,0 +1,10 @@ +{ + "hosting": { + "public": "public", + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ] + } +} diff --git a/src/2-json-parser/ts/public/404.html b/src/2-json-parser/ts/public/404.html new file mode 100644 index 0000000..829eda8 --- /dev/null +++ b/src/2-json-parser/ts/public/404.html @@ -0,0 +1,33 @@ + + + + + + Page Not Found + + + + +
+

404

+

Page Not Found

+

The specified file was not found on this website. Please check the URL for mistakes and try again.

+

Why am I seeing this?

+

This page was generated by the Firebase Command-Line Interface. To modify it, edit the 404.html file in your project's configured public directory.

+
+ + diff --git a/src/2-json-parser/ts/public/index.html b/src/2-json-parser/ts/public/index.html new file mode 100644 index 0000000..7067fa7 --- /dev/null +++ b/src/2-json-parser/ts/public/index.html @@ -0,0 +1,89 @@ + + + + + + Welcome to Firebase Hosting + + + + + + + + + + + + + + + + + + + +
+

Welcome

+

Firebase Hosting Setup Complete

+

You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!

+ Open Hosting Documentation +
+

Firebase SDK Loading…

+ + + +