Commit Graph
21 Commits
Author SHA1 Message Date
dong.nguyen 773000a42a fix(ci): drop -R from infra rsync; per-step remote_path (action prefixes GITHUB_WORKSPACE)
Run 2026-10-23 shipped files to dong-site/workspace/dong.nguyen/cv/… on the VPS: the action builds the rsync source as "/" (entrypoint.sh) and -R mirrors that absolute path; deploy/htpasswd also landed as a directory. Each step now uses plain -avz with an explicit remote_path (dong-site/ for nginx.conf + compose.yaml, dong-site/deploy/ for htpasswd). Spec §4 sketch/notes resolved, §8 rows 2/4 record both run outcomes and the owner-side VPS cleanup before the next dispatch.
2026-10-23 23:45:39 +07:00
dong.nguyen 6d7cae40d4 fix(ci): deploy-infra rsync as three single-path steps (action quotes path input)
First real run 2026-10-23: burnett01/rsync-deployments passes the comma-list path input to rsync as one quoted argument — link_stat "nginx.conf,compose.yaml,deploy/htpasswd" failed, nothing shipped, live container untouched. Apply the spec §4 fallback: one rsync step per file with full remote_* config, -avzR kept. Spec: §4 sketch + inference note resolved, §6 paths-filter risk annotated, §8 rows 2/4 record the run outcome and the re-run-via-dispatch step.
2026-10-23 23:15:03 +07:00
dong.nguyen 5e9c76c62b feat(ci): deploy-infra pipeline + env-driven site identity (spec-v4-deploy-infra rev.6-7)
Repo side of spec-v4-deploy-infra: deploy-infra.yml (paths-filtered nginx redeploy, test-before-touch, health probe); compose.yaml rename + secrets/site_config entrypoint override; site identity externalized - SITE_URL/SITE_NAME read from env (site.ts, vite site-identity plugin, index.html tokens, generated robots.txt); nginx.conf/vite dev proxy read GITEA_CONTENTS_API; .env.example; AGENTS.md + specs updated. Rev.7: site identity delivered as Gitea Actions variables (vars. context, public values) instead of secrets; upload-artifact unified to v7 across jobs.
2026-10-23 22:34:23 +07:00
dong.nguyen e6b4d83084 refactor(i18n): split content into structure JSON and per-language dictionaries
Phase 1 of spec-v4-live-edit: data/i18n foundation, no visible feature.

- src/data/{profile,skills,experience,projects}.json: language-neutral
  structure documents with thin typed loaders; all prose moved to
  src/i18n/locales/{vi,en}/content.json; chrome strings to ui.json
- src/i18n/: dict-types, cross-document validator (runs at module load and
  via pnpm validate:content), loader joining structure+text once (UI/CONTENT),
  I18nProvider/useI18n mounted in App under LanguageProvider
- all 22 consumers read joined records via useI18n(); field.ts and
  strings.ts deleted; *En field pairs removed from the domain types
- hero tagline renders as plain-text segments (D9); philosophy quotes as
  paragraph arrays; footer display name now localizes per language (D6)
- resume generator consumes UI/CONTENT; generated resume HTML verified
  byte-identical (EN+VI) before/after the migration
- AGENTS.md and v3/v3-i18n + v4 specs updated; deploy.yml concurrency group
2026-10-22 07:29:06 +07:00
dong.nguyen 1f20f36180 fix action version 2026-10-12 14:56:48 +07:00
dong.nguyen 0297c18bad 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)
2026-10-12 14:50:17 +07:00
dong.nguyen 26af25a39d feat(resume): Phase 2 CI integration for PDF generation
- Split deploy.yml into 3 jobs: build, generate-resume, deploy
- generate-resume job: Playwright cache, chromium install, PDF generation
- deploy job: download both static-site and resume-pdf artifacts
- Add build:resume convenience script in package.json
- Artifact retention: site 5 days, PDF 30 days
2026-10-11 00:55:00 +07:00
dong.nguyen ef3977f4be updated docu 2026-10-10 14:02:47 +07:00
dong.nguyen adbe4aeff2 clean code 2026-10-10 13:38:22 +07:00
dong.nguyen 985ad84421 debug rsync 2026-10-10 13:33:15 +07:00
dong.nguyen dd88b4dfe7 test vps deployment 2026-10-10 13:26:56 +07:00
dong.nguyen 6bd11a3d05 test vps deployment 2026-10-10 13:23:17 +07:00
dong.nguyen 1e747b5cb2 test vps deployment 2026-10-10 13:04:59 +07:00
dong.nguyen 23298138e7 list files in /dist 2026-10-10 12:12:30 +07:00
dong.nguyen 98a20db698 list dist 2026-10-10 12:11:34 +07:00
dong.nguyen 410874aedf build 2026-10-10 12:05:08 +07:00
dong.nguyen e5adf73c3a test cache 2026-10-10 12:01:06 +07:00
dong.nguyen 9b5af6c759 test cache 2026-10-10 09:21:54 +07:00
dong.nguyen 82f7cee0b2 added cache for pnpm setup 2026-10-10 08:41:55 +07:00
dong.nguyen a14af1c645 updated script 2026-10-10 00:36:46 +07:00
dong.nguyen 0658eb3b3b added gited action 2026-10-10 00:17:29 +07:00