Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
# Deploy versioned docs to GitHub Pages
# This creates a folder structure on gh-pages branch for each version:
# gh-pages/
# ├── index.html ← root redirect (deployed from main branch)
# ├── main/ ← from main branch
# ├── release-0.1/ ← from release-0.1 branch
# └── pr-preview/ ← PR previews (preserved via clean-exclude)
Expand All @@ -82,3 +83,19 @@ jobs:
target-folder: ${{ steps.set-version.outputs.version }}
clean-exclude: pr-preview
force: false

# Deploy root index.html redirect from main branch only
# This ensures the site root redirects to the default version (release-0.1)
- uses: JamesIves/github-pages-deploy-action@4a3abc783e1a24aeb44c16e869ad83caf6b4cc23 # v4
if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' }}
with:
folder: .
branch: gh-pages
target-folder: .
clean: false
clean-exclude: |
pr-preview
main
release-*
force: false
include: index.html
9 changes: 9 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
<head>
<title>Platform Mesh</title>
<meta http-equiv="refresh" content="0; url=https://platform-mesh.io/release-0.1/" />
</head>
<body>
</body>
</html>