Skip to content

Merges develop with PR #477: Adds link-action block, improved Sphinx … #58

Merges develop with PR #477: Adds link-action block, improved Sphinx …

Merges develop with PR #477: Adds link-action block, improved Sphinx … #58

Workflow file for this run

name: firebase_deploy
on:
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Install Dependencies
run: npm install --legacy-peer-deps
- name: Build
run: npm run build:prod
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: dist
path: dist
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Download Artifact
uses: actions/download-artifact@master
with:
name: dist
path: dist
- name: Install Functions Dependencies
run: npm install --legacy-peer-deps
working-directory: functions
- name: Copy index.html file
run: mv dist/index.html functions/
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting,functions
env:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}