Skip to content

Fix telegram (#119) #56

Fix telegram (#119)

Fix telegram (#119) #56

Workflow file for this run

name: Build and Deploy
env:
REACT_APP_FIREBASE_API_KEY: ${{ vars.REACT_APP_FIREBASE_API_KEY }}
REACT_APP_FIREBASE_AUTH_DOMAIN: ${{ vars.REACT_APP_FIREBASE_AUTH_DOMAIN }}
REACT_APP_FIREBASE_DATABASE_URL: ${{ vars.REACT_APP_FIREBASE_DATABASE_URL }}
REACT_APP_FIREBASE_PROJECT_ID: ${{ vars.REACT_APP_FIREBASE_PROJECT_ID }}
REACT_APP_FIREBASE_STORAGE_BUCKET: ${{ vars.REACT_APP_FIREBASE_STORAGE_BUCKET }}
REACT_APP_FIREBASE_MESSAGING_SENDER_ID: ${{ vars.REACT_APP_FIREBASE_MESSAGING_SENDER_ID }}
REACT_APP_FIREBASE_APP_ID: ${{ vars.REACT_APP_FIREBASE_APP_ID }}
REACT_APP_GOOGLE_API_KEY: ${{ vars.REACT_APP_GOOGLE_API_KEY }}
REACT_APP_GOOGLE_SHEETS_ID: ${{ vars.REACT_APP_GOOGLE_SHEETS_ID }}
on:
push:
branches: [ "master" ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install Dependencies
run: npm install
- name: Build tracker
run: npm run tracker:build:prod
- name: Build admin
run: npm run admin:build:prod
- name: Archive Production Artifact Admin
uses: actions/upload-artifact@master
with:
name: admin-dist
path: packages/admin/build
- name: Archive Production Artifact Tracker
uses: actions/upload-artifact@master
with:
name: tracker-dist
path: packages/tracker/build
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Download Artifact Admin
uses: actions/download-artifact@master
with:
name: admin-dist
path: packages/admin/build
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting -P default
env:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
PROJECT_PATH: packages/admin
- name: Download Artifact Tracker
uses: actions/download-artifact@master
with:
name: tracker-dist
path: packages/tracker/build
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting -P default
env:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
PROJECT_PATH: packages/tracker