Skip to content

fix build

fix build #43

Workflow file for this run

name: publish
on:
push:
paths-ignore:
- "docs/**"
- "**.md"
branches:
- master
jobs:
publish:
name: Build and deploy to Github pages
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [14.x]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
uses: actions/cache@v1
id: cache
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
yarn install
- name: Build and deploy
run: |
CI=false yarn run build
env:
PUBLIC_URL: /slippi-stats
- name: Publish
uses: peaceiris/actions-gh-pages@v2.4.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./build