Skip to content

Reduce Loading Time by pre-fetching data at time of building #16

Reduce Loading Time by pre-fetching data at time of building

Reduce Loading Time by pre-fetching data at time of building #16

name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: github-pages
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Install and Build 🔧
run: |
yarn install
yarn fetch_data
yarn run build
env:
REACT_APP_GITHUB_REPO: ${{ secrets.REACT_APP_GITHUB_REPO }}
REACT_APP_TITLE: ${{ secrets.REACT_APP_TITLE }}
REACT_APP_WEBSITE_URL: ${{ secrets.REACT_APP_WEBSITE_URL }}
REACT_APP_WEBSITE_VERSION: ${{ secrets.REACT_APP_WEBSITE_VERSION }}
REACT_APP_DESCRIPTION: ${{ secrets.REACT_APP_DESCRIPTION }}
REACT_APP_JSONBIN_MASTER_KEY: ${{secrets.REACT_APP_JSONBIN_MASTER_KEY}}
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build