Skip to content

Merge branch 'main' into develop #158

Merge branch 'main' into develop

Merge branch 'main' into develop #158

name: Deploy to Firebase Hosting (STG)
on:
push:
branches:
- develop
jobs:
build-and-deploy:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version-file: ./.node-version
- name: Install dependencies
run: npm ci
- name: Build and Export
run: |
npm run build
npm run export
- name: Install firebase-tools
run: npm install -g firebase-tools
- name: Deploy to Staging
run: |
firebase use pokemon-shuzokuchi-quiz
firebase deploy --only hosting:staging