Skip to content

Commit a93c9c3

Browse files
committed
Simplify GitHub Pages deployment workflow for basic static site
1 parent 56c9517 commit a93c9c3

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,23 @@ jobs:
5454
mix assets.deploy
5555
mix phx.digest
5656
57-
# Copy the HTML files from lib/kati_portfolio_web/controllers/page_html
58-
cp lib/kati_portfolio_web/controllers/page_html/*.html.heex priv/static/
57+
# Create a minimal index.html
58+
cat > priv/static/index.html << 'EOL'
59+
<!DOCTYPE html>
60+
<html>
61+
<head>
62+
<title>Kati Best Design</title>
63+
<link rel="stylesheet" href="/assets/app.css">
64+
</head>
65+
<body>
66+
<h1>Kati Best Design</h1>
67+
<p>Coming soon...</p>
68+
</body>
69+
</html>
70+
EOL
5971
6072
# Ensure CNAME is present
6173
echo "katibestdesign.com" > priv/static/CNAME
62-
63-
# Create a 404.html for GitHub Pages
64-
echo '<!DOCTYPE html><html><head><meta charset="utf-8"><title>Page Not Found</title></head><body><h1>404 - Page Not Found</h1><p>The page you are looking for does not exist.</p></body></html>' > priv/static/404.html
65-
66-
# Create a _redirects file for Netlify-style redirects
67-
echo "/images/* /images/:splat 200" > priv/static/_redirects
6874
6975
- name: Deploy to GitHub Pages
7076
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)