Skip to content

added 404.html file after build step to handle gh-pages routing issue… #145

added 404.html file after build step to handle gh-pages routing issue…

added 404.html file after build step to handle gh-pages routing issue… #145

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
pull_request: {}
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: github-pages
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Node ✨
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install Dependencies 🔧
run:
yarn install
- name: Build 🔧
run:
yarn run build
- name: Post Build Actions 🛠️
run:
yarn run github-post-build
env:
NODE_ENV: production
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: pages
FOLDER: dist
CLEAN: true