Skip to content

Merge pull request #6 from appventure-nush/2024-moreupdates #35

Merge pull request #6 from appventure-nush/2024-moreupdates

Merge pull request #6 from appventure-nush/2024-moreupdates #35

# 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:
- master
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Fetch repo
uses: actions/checkout@v2
with:
ref: master
- name: cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('client/package-lock.json') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Install node
uses: actions/setup-node@master
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Deploy NUSH Open House Tours with Firebase
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_NUSH_OPEN_HOUSE_TOURS }}'
channelId: live
projectId: nush-open-house-tours