Skip to content

Handle large numbers that sometimes happen #125

Handle large numbers that sometimes happen

Handle large numbers that sometimes happen #125

name: Build and Deploy Dev Site
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: lts/iron
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Build UI
run: |
npm ci
npm run build
env:
CI: true
VITE_APIKEY: ${{ secrets.FIREBASE_WEB_API_KEY_DEV }}
VITE_AUTHDOMAIN: "coreofscience-dev.firebaseapp.com"
VITE_DATABASEURL: "https://coreofscience-dev.firebaseio.com"
VITE_PROJECTID: "coreofscience-dev"
VITE_STORAGEBUCKET: "coreofscience-dev.appspot.com"
VITE_MESSAGINGSENDERID: "421154467745"
VITE_APPID: "1:421154467745:web:d7dd5ed17243869ba765e0"
VITE_MEASUREMENTID: "G-N2245DYRQN"
- name: Prepare functions
shell: bash
run: |
cd functions
python3.12 -m venv venv
source ./venv/bin/activate
pip install -r requirements.txt
cd ..
- name: Deploy
shell: bash
run: |
echo $RAW_CREDENTIALS > $GOOGLE_APPLICATION_CREDENTIALS
npm run deploy -- -P dev
rm $GOOGLE_APPLICATION_CREDENTIALS
env:
RAW_CREDENTIALS: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_COREOFSCIENCE_DEV }}
GOOGLE_APPLICATION_CREDENTIALS: .credentials.json