Skip to content

Commit

Permalink
Update firebase-hosting-merge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yhimanshu22 authored Jul 14, 2024
1 parent 5ae8bf8 commit 911f51f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on merge

on:
Expand All @@ -10,29 +8,30 @@ on:
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'

- name: Set Node.js options
run: export NODE_OPTIONS=--openssl-legacy-provider

- name: Install dependencies
run: yarn install

- name: Build Next.js application
run: yarn run build

- name: Deploy to Firebase Hosting
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_E_COMMERCE_99426 }}
channelId: live
projectId: e-commerce-99426

0 comments on commit 911f51f

Please sign in to comment.