Files
Understand-Anything/.github/workflows/deploy-homepage.yml
T
Lum1104 e862b9a1da feat(homepage): add cinematic project homepage with GitHub Pages deployment
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>
2026-03-15 20:26:49 +08:00

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