- Build Scripts Enhanced - Secure packaging with source code protection
- Install Scripts Updated - Correct URLs pointing to GitHub Pages
- Website HTML Updated - Install commands now use correct URLs
- Deployment Script Created -
deploy-to-github-pages.ps1ready to use - API Endpoint Created -
api/latest.jsonfor version checking
If you haven't already, install and authenticate GitHub CLI:
# Install (if needed)
winget install --id GitHub.cli
# Authenticate
gh auth loginSee Persistencedev/GITHUB_CLI_SETUP.md for detailed instructions.
cd Persistencedev
.\deploy-to-github-pages.ps1 -Version "1.0.13"This single command will:
- ✅ Build distribution packages
- ✅ Verify no source code leaks
- ✅ Update
latest.json - ✅ Create GitHub Release
- ✅ Upload ZIP files and checksums
- ✅ Deploy website to GitHub Pages
That's it! 🎉
If you don't have GitHub CLI set up, you can still deploy manually:
cd Persistencedev
.\build-distribution.ps1 -Version "1.0.13"
.\deploy-to-github-pages.ps1 -Version "1.0.13" -SkipRelease -SkipWebsite- Go to: https://github.com/Persistence-AI/Landing/releases/new
- Tag:
v1.0.13 - Upload ZIP files from
Persistencedev/dist/ - Publish
# Clone Landing repo
cd ..
git clone https://github.com/Persistence-AI/Landing.git
cd Landing
# Copy website files
Copy-Item -Path "..\PersistenceCLI\website\*" -Destination "." -Recurse -Force
# Commit and push
git add .
git commit -m "Deploy website v1.0.13"
git push origin main- Go to: https://github.com/Persistence-AI/Landing/settings/pages
- Source:
Deploy from a branch - Branch:
main/root - Folder:
/ (root) - Click Save
Wait 1-2 minutes for GitHub Pages to build.
-
Website: https://persistence-ai.github.io/Landing/
- Should show install commands
- Version badge should show
v1.0.13
-
Install Scripts:
# Windows - should download and install iwr -useb https://persistence-ai.github.io/Landing/install.ps1 | iex # Linux/macOS - should download and install curl -fsSL https://persistence-ai.github.io/Landing/install.sh | bash
-
API Endpoint: https://persistence-ai.github.io/Landing/api/latest.json
- Should return:
{"version":"1.0.13","channel":"latest",...}
- Should return:
Once deployed, users can use these commands:
Install Script (Recommended):
- Windows:
iwr -useb https://persistence-ai.github.io/Landing/install.ps1 | iex - Linux/macOS:
curl -fsSL https://persistence-ai.github.io/Landing/install.sh | bash
Direct Download:
- Users can download ZIP files from: https://github.com/Persistence-AI/Landing/releases
These require additional setup:
- npm/bun/pnpm/yarn: Need to publish to npm registry
- Homebrew: Need to create Homebrew formula
- Chocolatey: Need to create Chocolatey package
- Scoop: Need to add to Scoop bucket
- Arch Linux (Paru): Need to create AUR package
When releasing a new version (e.g., v1.0.14):
- Update version in
build-distribution.ps1call - Run
deploy-to-github-pages.ps1with new version - Create new GitHub Release with new tag
- Push website files (they auto-update
latest.json)
- Install scripts are PUBLIC - This is fine, they're just installation logic
- ZIP files are SECURE - Verified to contain no source code
- GitHub Pages is FREE - No hosting costs
- Custom Domain: You can add
persistenceai.comlater if desired
404 on install scripts?
- Wait 1-2 minutes after pushing (GitHub Pages rebuilds)
- Check files are in
website/directory - Verify GitHub Pages is enabled
Version not found?
- Check GitHub Release exists with correct tag
- Verify
api/latest.jsonhas correct version - Ensure ZIP filename matches pattern
Need help? See DEPLOYMENT_GUIDE.md for detailed instructions.