- Your website:
https://persistence-ai.github.io/Landi - Website files: In
website/directory - Install scripts: Need to be deployed to GitHub Pages
- Download files: Need to be hosted (GitHub Releases recommended)
Option A: Use PowerShell Script (Easiest)
cd website
.\update-urls-for-github-pages.ps1Option B: Manual Update
Replace all instances of https://persistenceai.com with https://persistence-ai.github.io/Landi in index.html.
# From project root
cp Persistencedev/install.ps1 website/
cp Persistencedev/install.sh website/In website/install.ps1:
# Change line 21:
$BASE_URL = "https://persistence-ai.github.io/Landi"In website/install.sh:
# Change line 29:
BASE_URL="https://persistence-ai.github.io/Landi"Create website/api/latest.json:
{
"version": "1.0.202",
"channel": "latest",
"download_url": "https://persistence-ai.github.io/Landi/download/v1.0.202/"
}Option A: GitHub Actions (Automatic)
Create .github/workflows/deploy-website.yml:
name: Deploy Website
on:
push:
branches: [main]
paths: ['website/**']
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
with:
path: './website'
- uses: actions/deploy-pages@v4Option B: Manual (Settings)
- Go to repository Settings → Pages
- Source: Deploy from a branch
- Branch: main / website/
- Save
Recommended: GitHub Releases
-
Build your distribution:
cd Persistencedev .\build-distribution.ps1 -Version "1.0.202"
-
Create GitHub Release:
- Go to:
https://github.com/persistence-ai/Landi/releases/new - Tag:
v1.0.202 - Upload:
dist/persistenceai-windows-x64-v1.0.202.zip
- Go to:
-
Update install scripts to use GitHub Releases (already configured as fallback)
Windows:
iwr -useb https://persistence-ai.github.io/Landi/install.ps1 | iexLinux/macOS:
curl -fsSL https://persistence-ai.github.io/Landi/install.sh | bashhttps://persistence-ai.github.io/Landi/
├── index.html ✅ Main website
├── install.ps1 ✅ PowerShell installer
├── install.sh ✅ Bash installer
├── api/
│ └── latest.json ✅ Version API
└── assets/
└── logo.png ✅ Logo
If you want to use persistenceai.com instead:
-
Update URLs:
cd website .\update-urls-for-github-pages.ps1 -CustomDomain "persistenceai.com"
-
Configure GitHub Pages:
- Go to repository Settings → Pages
- Add custom domain:
persistenceai.com
-
Update DNS:
- Add CNAME record:
persistenceai.com→persistence-ai.github.io
- Add CNAME record:
- Check file paths (GitHub Pages is case-sensitive)
- Ensure files are in the correct branch
- Wait a few minutes for GitHub Pages to update
- Verify URLs in install scripts match GitHub Pages URL
- Check that scripts are in the repository root or correct subdirectory
- Test direct access:
https://persistence-ai.github.io/Landi/install.ps1
- Use GitHub Releases for large files (>100MB)
- Check file permissions in repository
- Verify download URLs in install scripts
- ✅ Update website URLs
- ✅ Deploy install scripts
- ✅ Set up version API
- ✅ Configure GitHub Pages
- ✅ Test installation
- ⏭️ Set up custom domain (optional)
- ⏭️ Configure automatic deployment (GitHub Actions)
See GITHUB_PAGES_SETUP.md for detailed instructions.