Merges develop with PR #477: Adds link-action block, improved Sphinx … #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |