-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (48 loc) · 1.57 KB
/
frontend-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Frontend Deploy
on:
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
default: "warning"
tags:
description: "Test scenario tags"
release:
types: [published]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Set Node Version
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Dependencies
working-directory: ./frontend
run: npm install
- name: Generate
working-directory: ./frontend
run: npm run generate
env:
API_URL: https://api.osrsrecords.com
IMAGE_SERVING_URL: https://cdn.osrsrecords.com
VER: ${{ github.ref }}
SITE_NAME: "OSRSRecords"
SITE_DESCRIPTION: "OSRSRecords is a website for tracking PvM speedrun records in the Old School RuneScape community"
SITE_IMAGE_URL: https://cdn.osrsrecords.com/permanent/android-chrome-384x384.png
SITE_CONTACT_EMAIL: [email protected]
SITE_DISCORD_LINK: https://discord.gg/8U56ZZn
SITE_GITHUB_REPOSITORY_URL: https://github.com/big213/OSRSRecords
LOGO_HAS_LIGHT_VARIANT:
DEFAULT_GRID_VIEW:
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
PROJECT_PATH: ./frontend