Skip to content

Commit a43b006

Browse files
committed
Deploying on firebase
1 parent 8cc2ca1 commit a43b006

File tree

7 files changed

+74
-0
lines changed

7 files changed

+74
-0
lines changed

.firebase/hosting.cHVibGlj.cache

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
vite.svg,1755151349436,9de4d3c4e50257d9874f07e9efc929efefc85e51f931a9af716f9a7ebb23ef68
2+
index.html,1755192453494,39b94a324b74629c0cd3895b87ba754ef67dd0f1158625fc8af35a05bbe9f615
3+
fonts/bold_game_font.otf,1755177728284,7a5b32f92abc26c171e1d032ec4d46f4a38a4da1b7a1db515632eb0cffaa5565
4+
assets/icons/rock.png,1755191270574,84f2896151b2b0d9f3e315832648215b29a6e3b78277aea04e5d0fe114e3c692
5+
assets/icons/paper.png,1755191270602,25a3ff9c88a0bb1d342ff49936008bb7d69f752208385617c32dc31e309bbe6a
6+
assets/icons/scissors.png,1755191270494,287cf891794ffa13833d5a04f710deb9310e8b3224586195e1f25da8f07f15f5
7+
assets/sprites/idle_to_paper.png,1755190708338,89a69b7b2fa8b069295ed34719f7cf7e4fe791f1caf41a52ba4cb4b6b3bdd69b
8+
fonts/ribbion_black.ttf,1755179836230,fa61067e5553b1bb37d1610d08880f958cbfd997c90a4d4421b6e7d202cfe649
9+
assets/sprites/idle.png,1755184741114,c39d3318b4c66fdc5082689db1ea42c0b9c84f31d4da0357a6bb7f87c228c4e6
10+
assets/sprites/idle_to_scissor.png,1755184741066,7b16b5d1f50da9072412c61f17a3861931f5472baa76fd23b0e617d8fda1e315
11+
assets/sprites/idle_to_rock.png,1755184741322,147757d130a3685d9239190c9ce3fe0518f139f360c18a2580591903e18d31df

.firebaserc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "handwar-pz"
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_HANDWAR_PZ }}
19+
channelId: live
20+
projectId: handwar-pz
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_HANDWAR_PZ }}
21+
projectId: handwar-pz

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ lerna-debug.log*
1010
node_modules
1111
dist
1212
dist-ssr
13+
build/
14+
build-ssr/
1315
*.local
1416
.env
1517
# Editor directories and files

firebase.json

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

vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ import tailwindcss from "@tailwindcss/vite";
44
// https://vite.dev/config/
55
export default defineConfig({
66
plugins: [tailwindcss(), react()],
7+
build: {
8+
outDir: "build",
9+
},
710
});

0 commit comments

Comments
 (0)