Skip to content

chore(deps): lock file maintenance (#66) #56

chore(deps): lock file maintenance (#66)

chore(deps): lock file maintenance (#66) #56

name: Deploy to Firebase Hosting on merge
on:
push:
branches:
- main
jobs:
build_and_deploy:
name: Build and Deploy to Live
runs-on: ubuntu-24.04
environment:
name: production
url: https://bvarga.dev
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- name: Cache node modules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Build and Test
run: ./scripts/build.sh
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BVARGA_FE600 }}'
channelId: live
projectId: bvarga-fe600