Skip to content

trying to fix the 404 errors on allpages except the frontpage #4

trying to fix the 404 errors on allpages except the frontpage

trying to fix the 404 errors on allpages except the frontpage #4

Workflow file for this run

name: Deploy Website
on:
push:
branches:
- main # or master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18' # specify Node.js version
- name: Install dependencies
run: |
npm install
npm run build # this assumes you have a build script in package.json
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist # Adjust this if your build output folder is different