mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
e862b9a1da
Astro-based static homepage with dark luxury theme, self-hosted fonts, scroll-reveal animations, and GitHub Actions CI/CD to Pages. Sections: Nav, Hero, Dashboard Showcase, Feature Cards, Install CTA, Footer. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
56 lines
1.0 KiB
YAML
56 lines
1.0 KiB
YAML
name: Deploy Homepage
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'homepage/**'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: pages
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
cache-dependency-path: homepage/pnpm-lock.yaml
|
|
|
|
- name: Install dependencies
|
|
working-directory: homepage
|
|
run: pnpm install
|
|
|
|
- name: Build
|
|
working-directory: homepage
|
|
run: pnpm build
|
|
|
|
- uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: homepage/dist
|
|
|
|
deploy:
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
steps:
|
|
- id: deployment
|
|
uses: actions/deploy-pages@v4
|