GitHub Pages YML

# This is a basic workflow to help you get started with Actions

name: gh-pages build

# Controls when the action will run.
on:
    # Triggers the workflow on push or pull request events but only for the master branch
    push:
        branches: [master]

    # Allows you to run this workflow manually from the Actions tab
    workflow_dispatch:

jobs:
    build:
        runs-on: ubuntu-latest

        steps:
            - name: Checkout ⏬
              uses: actions/checkout@v2

            - name: Install 🔧
              run: npm install

            - name: Build 🔥
              run: CI='' npm run build

            - name: Deploy 🚀
              uses: peaceiris/actions-gh-pages@v3
              with:
                  github_token: ${{ secrets.GITHUB_TOKEN }}
                  publish_dir: ./build