Skip to content

Only deploy hosting in github action #3

Only deploy hosting in github action

Only deploy hosting in github action #3

name: Deploy to Windy City Devfest
on:
push:
branches:
- master
jobs:
build:
name: Build & Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v3
with:
node-version: '18'
- uses: w9jds/setup-firebase@main
with:
firebase_token: ${{ secrets.FIREBASE_TOKEN }}
- run: npm ci
- run: npm run build-prod
env:
DELOREAN_API_KEY: ${{ secrets.DELOREAN_API_KEY }}
DELOREAN_MAP_API: ${{ secrets.DELOREAN_MAP_API }}
DELOREAN_EVENT_ID: 729485088537
- run: firebase use default
- run: firebase deploy --only hosting