Skip to content

Update README.md

Update README.md #15

name: Deploy to Firebase Hosting on merge
"on":
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup Node.js environment
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "21"
# Install dependencies
- name: Install Dependencies
run: npm install # Or use yarn install
# Build the project
- name: Build
run: npm run build # Or use yarn build
env:
CI: false
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_PATHTOPET }}"
channelId: live
projectId: pathtopet