Skip to content

ci: firebase hosting #4

ci: firebase hosting

ci: firebase hosting #4

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting
on:
push:
branches: ['main']
workflow_dispatch:
permissions:
checks: write
contents: read
pull-requests: write
jobs:
build_and_preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node v20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Build
run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_NEPALITIME_9C05B }}
projectId: nepalitime-9c05b
channelId: 'main'