Skip to content

Commit

Permalink
Set up firebase for Next.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Amursky committed Nov 17, 2023
1 parent cc54842 commit fb36c05
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
'on':
"on":
push:
branches:
- main
Expand All @@ -14,7 +14,9 @@ jobs:
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_OUTGOING_SNEAKY_QUILL }}'
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_OUTGOING_SNEAKY_QUILL }}"
channelId: live
projectId: outgoing-sneaky-quill
env:
FIREBASE_CLI_EXPERIMENTS: webframeworks
10 changes: 6 additions & 4 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
'on': pull_request
"on": pull_request
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_OUTGOING_SNEAKY_QUILL }}'
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_OUTGOING_SNEAKY_QUILL }}"
projectId: outgoing-sneaky-quill
env:
FIREBASE_CLI_EXPERIMENTS: webframeworks

0 comments on commit fb36c05

Please sign in to comment.