Skip to content

update src/index.jsx #113

update src/index.jsx

update src/index.jsx #113

Workflow file for this run

name: GH Pages Deploy
on:
push:
branches: [main]
paths-ignore:
- "*.md"
pull_request:
branches: [main]
paths-ignore:
- "*.md"
jobs:
build-deploy:
name: Build and deploy app
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@master
with:
persist-credentials: false
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }} # TODO: Use yarn.lock instead, if that file exists in your repo.
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies πŸ”§
run: yarn install
- name: Test 🚨
run: yarn test
- name: Build πŸ—οΈ
run: yarn build
- name: Deploy to GH Pages πŸš€
if: ${{ github.event_name != 'pull_request' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build