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' + + +
+ +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