Skip to content

Commit

Permalink
setup deploymend for firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoschmidtdmde committed Feb 2, 2024
1 parent 009e009 commit 5b5d29a
Show file tree
Hide file tree
Showing 7 changed files with 769 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .firebase/hosting.YnVpbGQ.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
index.html,1706888214298,0bebdd0a6de9402e401aa0a582cd464ce90ccfbc0f5b7aad8154e972937cc1c0
favicon.ico,1706888209621,b72f7455f00e4e58792d2bca892abb068e2213838c0316d6b7a0d6d16acd1955
asset-manifest.json,1706888214298,26958bf0e3c6553b2eb8a02864f76db8c9d20a396e6fb04f71a038403d8a2d63
logo.svg,1706888209633,519ecfee19b6214edad96116d9a9385fcae1c52e3086cfd30afbff2b90f922c6
manifest.json,1706888209635,341d52628782f8ac9290bbfc43298afccb47b7cbfcee146ae30cf0f46bc30900
logo192.png,1706888209634,caff018b7f1e8fd481eb1c50d75b0ef236bcd5078b1d15c8bb348453fee30293
robots.txt,1706888209635,391d14b3c2f8c9143a27a28c7399585142228d4d1bdbe2c87ac946de411fa9a2
logo512.png,1706888209634,191fc21360b4ccfb1cda11a1efb97f489ed22672ca83f4064316802bbfdd750e
static/css/main.3d12f501.css,1706888214300,ef8862b12faca1849688def33ca0f5d9eda03d7af04cf5c43583e67aeba15890
static/css/main.3d12f501.css.map,1706888214300,b56c11c9f89f2da25c34858956fa252a1bdd9c428073d2e19cfa055823ee4152
static/js/main.08e9327b.js.LICENSE.txt,1706888214300,688919e5d51c5b09a997c00bee4d5dd2c1bed4eb4ee1b2d68e5b93a3f416c1fd
images/fotoCard3.jpeg,1706888209631,389897e7c0b5bf1c7dc189c32164cc2c13c08f3ba69183327963ab0f04865ae3
images/hero-background.jpeg,1706888209633,96a1990a49fd0dbc8b35fbbea49cf1795a1f47202c150ebaf4c8c60b45950d2f
static/js/main.08e9327b.js,1706888214300,7b9f0669ffaa441728274c5164e7c22f723cf79b18a3ca94e66775950420f8c7
images/fotoCard1.jpeg,1706888209622,20176a31e559518d3312191a7a1f966ec0f93b8df0eaeba8a3acedbdc6d7039d
images/fotoCard4.jpeg,1706888209632,8c4001547aeb286f93ffc59a2957ec09971fb8f78554a8bbe6bae0cf098f5b51
images/fotoCard2.jpeg,1706888209625,f83ad1101acc6433ed9a6e0893c6d50f26c207fcf9f48bbf96348c83dd78cd12
static/js/main.08e9327b.js.map,1706888214300,c03a2f32b61f2935633b9a313d0aa32153722a3b4fb05e5121d3c8b486ff18ce
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "website-krafft"
}
}
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_WEBSITE_KRAFFT }}'
channelId: live
projectId: website-krafft
17 changes: 17 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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
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_WEBSITE_KRAFFT }}'
projectId: website-krafft
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
Loading

0 comments on commit 5b5d29a

Please sign in to comment.