Files
extension/.github/workflows/deploy-landing.yml
T
Hanzo Dev 30bba23219 feat: Comprehensive hanzo.app landing page and auto-releases
- Created hanzo.app landing page as central download hub
- Added download options for all platforms:
  - Desktop apps (Windows, macOS, Linux)
  - Mobile apps (iOS, Android)
  - Browser extensions (Chrome, Firefox, Edge, Safari)
  - IDE extensions (VS Code, JetBrains)
  - CLI tools (dev, MCP server)
  - Cloud platform access
- Updated CI/CD to create automatic nightly releases
- Added Vercel deployment workflow
- Created vercel.json with routing and redirects
- Added npm scripts for preview and deployment
- Landing page features:
  - Modern dark design with animations
  - Platform-specific download buttons
  - Quick start guide
  - Copy-to-clipboard for CLI commands
  - Responsive grid layout
- All download links point to GitHub releases or official stores
2025-07-11 16:04:39 -05:00

53 lines
1.4 KiB
YAML

name: Deploy Landing Pages
on:
push:
branches: [main]
paths:
- 'landing.html'
- 'hanzo-app.html'
- '.github/workflows/deploy-landing.yml'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Vercel CLI
run: npm install -g vercel
- name: Prepare deployment directory
run: |
mkdir -p deploy
cp hanzo-app.html deploy/index.html
cp landing.html deploy/dev.html
# Create vercel.json
cat > deploy/vercel.json << EOF
{
"rewrites": [
{ "source": "/dev", "destination": "/dev.html" },
{ "source": "/", "destination": "/index.html" }
],
"headers": [
{
"source": "/(.*)",
"headers": [
{ "key": "X-Content-Type-Options", "value": "nosniff" },
{ "key": "X-Frame-Options", "value": "DENY" },
{ "key": "X-XSS-Protection", "value": "1; mode=block" }
]
}
]
}
EOF
- name: Deploy to Vercel
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
run: |
cd deploy
vercel --prod --token $VERCEL_TOKEN