Skip to content

fix: relative links after refreshing page #62

fix: relative links after refreshing page

fix: relative links after refreshing page #62

Workflow file for this run

# GitHub Action, on push to main, yarn build, and then upload gh pages artifact
name: Deploy to GitHub Pages
on:
push:
branches:
- main
concurrency:
cancel-in-progress: true
group: deploy
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Install
run: yarn install
- name: Build
run: yarn build
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: build
deploy:
name: Deploy
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2