File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -61,12 +61,26 @@ jobs:
6161 - name : Create build artifact
6262 run : |
6363 echo "Preparing demos for deployment..."
64- mkdir -p _site
65- cp -r demos/* _site/
64+ mkdir -p _site/demos
65+ cp -r demos/* _site/demos/
6666
6767 # Create a .nojekyll file to bypass Jekyll processing
6868 touch _site/.nojekyll
6969
70+ # Create root redirect to demos
71+ cat > _site/index.html << 'EOF'
72+ <!DOCTYPE html>
73+ <html>
74+ <head>
75+ <meta http-equiv="refresh" content="0; url=demos/">
76+ <script>window.location.href = 'demos/';</script>
77+ </head>
78+ <body>
79+ <p>Redirecting to <a href="demos/">demos</a>...</p>
80+ </body>
81+ </html>
82+ EOF
83+
7084 # Create a custom 404 page
7185 cat > _site/404.html << 'EOF'
7286 <!DOCTYPE html>
You can’t perform that action at this time.
0 commit comments