-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (36 loc) · 1.11 KB
/
firebase-hosting-merge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Deploy to Firebase Hosting on merge
on:
push:
branches:
- main
permissions:
checks: write
contents: read
pull-requests: write
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14' # Use a stable LTS version like 14.x or 16.x
- name: Set Node.js options
run: echo "NODE_OPTIONS=--openssl-legacy-provider" >> $GITHUB_ENV
- name: Install dependencies
run: |
yarn add next@13.4.9
yarn install
- name: Build Next.js application
run: yarn run build
- name: Upgrade Firebase CLI
run: npm install -g firebase-tools@12.4.4
- name: Deploy to Firebase Hosting
uses: FirebaseExtended/action-hosting-deploy@12.4.4
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_E_COMMERCE_99426 }}
channelId: live
projectId: e-commerce-99426