Skip to content

Update useCycleColor.js #106

Update useCycleColor.js

Update useCycleColor.js #106

Workflow file for this run

name: build gatsby
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Cache node_modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{runner.OS}}-build-${{hashFiles('**/yarn.lock')}}
restore-keys: |
${{ runner.OS }}-build-${{ runner.OS }}-
- name: Install dependencies
run: yarn install --prod --pure-lockfile
- name: Build
run: yarn build:ghpage
env:
NODE_ENV: production
- name: Create CNAME
run: echo "jedutools.jbnu.ac.kr" > ./docs/CNAME
- uses: peaceiris/actions-gh-pages@v2
env:
GITHUB_TOKEN: ${{ secrets.JHELPERTOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./docs