mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
feat(resume): add version stamping and bilingual EN/VN PDF support
- Add version stamp footer 'Last updated: YYYY-MM-DD' to PDF - Implement bilingual support (English + Vietnamese) for resume PDF - Add Language type and *En optional fields to types - Add Vietnamese translations to profile, experience, projects data - resolveField utility for language-aware field resolution - Language-specific section labels (Experience/Kinh nghiệm, etc.) - --lang CLI arg: 'en' (default) or 'vi' - Output: resume.pdf (EN), resume-vi.pdf (VI) - Update CI workflow to generate and deploy both PDF versions - Add build:resume-all npm script - Update UI components (Hero, DownloadResume) for language selection - Add spec-v2-resume-future.md for deferred enhancements - Refactor spec-v2-resume-playwright.md (condense implementation notes)
This commit is contained in:
1 parent
26af25a39d
commit
0297c18bad
15 files changed
+395
-301
No files matched your search
@@ -45,27 +45,43 @@ jobs:
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: npx playwright install chromium
|
||||
- run: npx playwright install-deps chromium
|
||||
- run: pnpm tsx scripts/generate-resume.ts
|
||||
|
||||
# Upload PDF artifact
|
||||
- uses: actions/upload-artifact@v4
|
||||
# Generate English version (default)
|
||||
- run: pnpm tsx scripts/generate-resume.ts --lang=en
|
||||
|
||||
# Generate Vietnamese version
|
||||
- run: pnpm tsx scripts/generate-resume.ts --lang=vi
|
||||
|
||||
# Upload both PDF artifacts
|
||||
- uses: actions/upload-artifact@v8
|
||||
with:
|
||||
name: resume-pdf
|
||||
name: resume-pdf-en
|
||||
path: dist/resume.pdf
|
||||
retention-days: 30
|
||||
retention-days: 1
|
||||
|
||||
- uses: actions/upload-artifact@v8
|
||||
with:
|
||||
name: resume-pdf-vi
|
||||
path: dist/resume-vi.pdf
|
||||
retention-days: 1
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build, generate-resume]
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
- uses: actions/download-artifact@v8
|
||||
with:
|
||||
name: static-site
|
||||
path: dist/
|
||||
|
||||
- uses: actions/download-artifact@v4
|
||||
- uses: actions/download-artifact@v8
|
||||
with:
|
||||
name: resume-pdf
|
||||
name: resume-pdf-en
|
||||
path: dist/
|
||||
|
||||
- uses: actions/download-artifact@v8
|
||||
with:
|
||||
name: resume-pdf-vi
|
||||
path: dist/
|
||||
|
||||
- name: rsync deployments
|
||||
|
||||
Reference in new issue
Block a user