Skip to content

Commit

Permalink
chore: deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikstrasser committed Oct 30, 2024
1 parent fee647b commit 7246b60
Show file tree
Hide file tree
Showing 7 changed files with 1,816 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "dcupl-examples"
}
}
23 changes: 23 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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:
- deploy_firebase
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_DCUPL_EXAMPLES }}
channelId: live
projectId: dcupl-examples
env:
FIREBASE_CLI_EXPERIMENTS: webframeworks
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ logs
.env
.env.*
!.env.example

.firebase
11 changes: 11 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"functions": { "source": ".output/server" },
"hosting": [
{
"site": "dcupl-nuxt-starter",
"public": ".output/public",
"cleanUrls": true,
"rewrites": [{ "source": "**", "function": "server" }]
}
]
}
6 changes: 6 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,10 @@ export default defineNuxtConfig({
apiKey: "e0aa9e13-8f82-4edb-a5f3-3cf0c9e40207",
},
},

nitro: {
firebase: {
gen: 2
}
}
});
Loading

0 comments on commit 7246b60

Please sign in to comment.