Update Web #25
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: Update Web | |
on: | |
workflow_dispatch: | |
inputs: | |
description: | |
description: 'Release description' | |
jobs: | |
deploy: | |
env: | |
project: 'jp-bioinspekt' | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@master | |
- name: Install Dependencies | |
run: | | |
cd web | |
echo $SERVICE_ACCOUNT > key.json | |
env: | |
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} | |
- name: Build | |
if: contains(github.ref, 'build') | |
run: npm run build:web | |
- name: Deploy to Firebase | |
if: contains(github.ref, 'build') | |
uses: w9jds/firebase-action@master | |
with: | |
args: deploy --only hosting:web | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
PROJECT_ID: ${{ env.project }} | |
- name: Update Firestore | |
if: contains(github.ref, 'build') | |
run: | | |
cd web | |
node update-release.js |