From 509f0fade6e0f7d3623a008fc844cf863a29d004 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Feb 2026 03:50:56 +0000 Subject: [PATCH] Add GitHub Pages redirector workflow Deploy a 404.html and index.html to GitHub Pages that redirect visitors from the old site (uhyo.github.io/funstack-static/) to the new site (static.funstack.work/), preserving the path, query string, and hash fragment. The workflow is manually triggered. https://claude.ai/code/session_01RsqKGyQmifavj6FCUpKAdn --- .github/workflows/github-pages-redirector.yml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/github-pages-redirector.yml diff --git a/.github/workflows/github-pages-redirector.yml b/.github/workflows/github-pages-redirector.yml new file mode 100644 index 0000000..5a1b56b --- /dev/null +++ b/.github/workflows/github-pages-redirector.yml @@ -0,0 +1,57 @@ +name: GitHub Pages Redirector Deploy + +on: + workflow_dispatch: + +permissions: + pages: write + id-token: write + +concurrency: + group: "github-pages-redirector" + cancel-in-progress: false + +jobs: + deploy: + runs-on: ubuntu-latest + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Generate redirect page + run: | + mkdir _site + cat > _site/404.html << 'HTML' + + + + + Redirecting… + + + + +

This site has moved. Redirecting to static.funstack.work…

+ + + HTML + cp _site/404.html _site/index.html + + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4