mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
feat: resume download, router v7/v8 migrations, spec restructure
- Add resume download button in Hero CTA and Contact section - Migrate react-router v6→v7 and v7→v8 - Restructure specs: UI specs to specs/ui/, v2 specs to specs/v2/ - Add profile-photo assets (jpg + webp) - Update AGENTS.md, spec-v2.md index
This commit is contained in:
1 parent
02bad6036d
commit
d827bf9b23
37 files changed
+770
-443
No files matched your search
@@ -0,0 +1,61 @@
|
||||
# Specification — v2 CI/CD Pipeline
|
||||
|
||||
> **Document:** `spec-v2-cicd.md`
|
||||
> **Version:** 0.1.0
|
||||
> **Parent:** `spec-v2.md`
|
||||
> **Priority:** P5
|
||||
> **Estimate:** ~1 hour
|
||||
|
||||
---
|
||||
|
||||
## Requirement
|
||||
|
||||
GitHub Actions pipeline cho automated build, lint, test. Vercel cho deployment.
|
||||
|
||||
---
|
||||
|
||||
## GitHub Actions
|
||||
|
||||
```yaml
|
||||
# .github/workflows/ci.yml
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [dev, main]
|
||||
pull_request:
|
||||
branches: [dev]
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: pnpm/action-setup@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: pnpm
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm lint
|
||||
- run: pnpm build
|
||||
- run: pnpm test
|
||||
```
|
||||
|
||||
## Vercel Integration
|
||||
|
||||
- Connect GitHub repo
|
||||
- Auto deploy on `dev` → preview
|
||||
- Auto deploy on `main` → production
|
||||
- Environment variables: `SITE_URL`, `PLAUSIBLE_DOMAIN` (optional)
|
||||
|
||||
---
|
||||
|
||||
## Acceptance
|
||||
|
||||
- [ ] CI pass trên push vào dev
|
||||
- [ ] Lint pass
|
||||
- [ ] Build pass
|
||||
- [ ] Tests pass
|
||||
- [ ] Preview deploy trên Vercel
|
||||
- [ ] Production deploy khi merge vào main
|
||||
Reference in new issue
Block a user