diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 0d5cd637d..c6ee567b4 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -16,10 +16,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - # Step 2: Create a fresh redirect HTML file + # Step 2: Create redirect HTML files - name: Create redirect HTML run: | mkdir -p dist + # Homepage redirect cat > dist/index.html << 'EOF' @@ -35,6 +36,40 @@ jobs: EOF + # Deep link handling + cat > dist/404.html << 'EOF' + + + + + + Page Redirection + + + If you are not redirected automatically, follow this link to the new documentation. + + + EOF + # Step 3: Deploy to gh-pages branch - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3