v0.13.5 #38
Workflow file for this run
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: 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: Install Dependencies | |
working-directory: ./frontend | |
run: npm install | |
- name: Generate | |
working-directory: ./frontend | |
run: npm run generate | |
env: | |
API_URL: https://api.boilerplate.giraffeql.com | |
IMAGE_SERVING_URL: https://cdn.boilerplate.giraffeql.com | |
VER: ${{ github.ref }} | |
SITE_NAME: "Giraffeql Boilerplate" | |
SITE_DESCRIPTION: "Giraffeql Boilerplate is a basic boilerplate site for showcasing the Giraffeql API querying language in a basic and extendable implementation" | |
SITE_IMAGE_URL: https://cdn.boilerplate.giraffeql.com/permanent/android-chrome-512x512.png | |
SITE_CONTACT_EMAIL: [email protected] | |
SITE_DISCORD_LINK: https://discord.gg/CpSWfub9y6 | |
SITE_GITHUB_REPOSITORY_URL: https://github.com/big213/giraffeql-boilerplate | |
LOGO_HAS_LIGHT_VARIANT: | |
DEFAULT_LIGHT_MODE: true | |
DEFAULT_GRID_VIEW: | |
SOCIAL_LOGIN_ENABLED: | |
TEMP_STORAGE_PATH: temp | |
STRIPE_PUB_KEY: | |
- name: Create SA key | |
run: echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}' > $HOME/gcloud.json | |
- name: Deploy Hosting | |
run: export GOOGLE_APPLICATION_CREDENTIALS=$HOME/gcloud.json && cd frontend && npx firebase-tools deploy --only hosting --json |