Skip to content

Merge pull request #13 from dually8/add-toc #17

Merge pull request #13 from dually8/add-toc

Merge pull request #13 from dually8/add-toc #17

# 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:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: './package-lock.json'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0.9.0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_MYWEBSITE_555F6 }}'
channelId: live
projectId: mywebsite-555f6