File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 steps :
1515 - uses : actions/checkout@v4
1616
17+ # Primary: Cloudflare Pages
1718 - name : Deploy to Cloudflare Pages
1819 uses : cloudflare/wrangler-action@v3
1920 with :
2021 apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
2122 accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
2223 command : pages deploy website --project-name=arandu
24+
25+ # Fallback: GitHub Pages
26+ - name : Deploy to GitHub Pages (fallback)
27+ uses : peaceiris/actions-gh-pages@v4
28+ with :
29+ github_token : ${{ secrets.GITHUB_TOKEN }}
30+ publish_dir : ./website
31+ cname : arandu.app # Remove this line if you want only .github.io domain
Original file line number Diff line number Diff line change @@ -177,7 +177,11 @@ The IPC layer enables external processes to send commands to the running app. It
177177CSS styles (` style.css ` ) and highlight.js files. The Tauri frontend symlinks these files in ` apps/tauri/src/ ` .
178178
179179### Website (` website/ ` )
180- Static landing page deployed to Cloudflare Pages. No build step β plain HTML/CSS/JS.
180+ Static landing page with dual deployment for redundancy:
181+ - ** Primary:** Cloudflare Pages (https://arandu.app )
182+ - ** Fallback:** GitHub Pages (https://devitools.github.io/arandu/ )
183+
184+ Both deploy automatically via ` deploy-website.yml ` on push to ` main ` when ` website/** ` changes. No build step β plain HTML/CSS/JS.
181185
182186## Release Process
183187
Original file line number Diff line number Diff line change 1+ # Arandu Website
2+
3+ Static landing page for the Arandu project.
4+
5+ ## π Access URLs
6+
7+ ### Primary (Cloudflare Pages)
8+ - ** URL:** https://arandu.app
9+ - ** CDN:** Cloudflare global network
10+ - ** Deploy:** Automatic via GitHub Actions
11+
12+ ### Fallback (GitHub Pages)
13+ - ** URL:** https://devitools.github.io/arandu/
14+ - ** CDN:** GitHub CDN
15+ - ** Deploy:** Automatic via GitHub Actions (same workflow)
16+
17+ ## π Deployment
18+
19+ Both deployments happen automatically on push to ` main ` when ` website/** ` changes:
20+
21+ 1 . ** Cloudflare Pages** - Primary deployment
22+ 2 . ** GitHub Pages** - Fallback deployment (via ` gh-pages ` branch)
23+
24+ If Cloudflare experiences issues, use the GitHub Pages URL as an alternative.
25+
26+ ## π οΈ Local Development
27+
28+ ``` bash
29+ cd website
30+ python -m http.server 8000
31+ # or
32+ npx serve .
33+ ```
34+
35+ Access: http://localhost:8000
36+
37+ ## π Structure
38+
39+ ```
40+ website/
41+ βββ index.html # Main page
42+ βββ css/
43+ β βββ site.css # Styles
44+ βββ js/
45+ β βββ theme.js # Dark/light theme toggle
46+ βββ favicon-32x32.png
47+ βββ apple-touch-icon.png
48+ βββ icon.svg
49+ ```
50+
51+ ## β‘ Performance
52+
53+ - Size: ~ 20KB (minified HTML + CSS + JS)
54+ - Load time: <100ms (with CDN)
55+ - 100% static (no build step)
You canβt perform that action at this time.
0 commit comments