Skip to content

Add event name to the rankings screen #160

Add event name to the rankings screen

Add event name to the rankings screen #160

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
VERSION: "1.0.0.${{github.run_number}}"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
environment: prod
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/setup-node@v3.0.0
- name: Install packages
run: npm ci
# Environment variables
- name: create env files
run: |
touch functions/.env;
echo "${{ secrets.FIREBASE_ENV_VARS }}" >> functions/.env;
touch .env;
echo "${{ secrets.APP_ENV_VARS }}" > .env;
# Build, with no base url since in prod it's expected to be hosted on the same server at the root
- name: Build
run: npm run build
- name: Functions npm ci
run: npm ci --prefix "functions"
- name: Firebase deploy
uses: w9jds/firebase-action@v2.0.0
with:
args: deploy
env:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}