From 91efade9ec3055da4e6dadc2198a22101d6f27ac Mon Sep 17 00:00:00 2001 From: Supertiger Date: Fri, 1 Aug 2025 18:05:52 +0100 Subject: [PATCH] Add 404 redirect handling and GitHub Pages workflow configuration --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ index.html | 10 ++++++++++ public/404.html | 14 ++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 .github/workflows/main.yml create mode 100644 public/404.html diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..33eb1b0 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: gh-pages + +on: + push: + branches: + - main + +jobs: + gh-pages: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: 21.x + + - name: Install pnpm + run: npm install --global pnpm + + - name: Install dependencies + run: pnpm install + + - name: Build Vite + run: pnpm build + + - name: Deploy GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: dist diff --git a/index.html b/index.html index 954e9f7..6bcd1e0 100644 --- a/index.html +++ b/index.html @@ -12,5 +12,15 @@
+ diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..ca01860 --- /dev/null +++ b/public/404.html @@ -0,0 +1,14 @@ + + + + + +