18 Commits
Author SHA1 Message Date
George Cushen 1cf3eacddb ci: update node/actions due to GH node v20 deprecation
Still on node20 - blocked on upstream releases:

peaceiris/actions-hugo@v3 - the maintainer merged a node24 upgrade to main but hasn't cut a new release tag yet; nothing to do until v3.1.0 drops
HugoBlox/gh-action-updater@v2 - needs update
2026-05-02 22:09:13 +01:00
George Cushen 5767dde5e9 fix: hugo v0.161 insufficient tailwind security perms 2026-05-02 21:58:20 +01:00
George Cushen 8fb7186068 fix(templates): make shipped build.yml compatible with Hugo v0.161
The shipped per-template GitHub Actions build workflow still pinned
Node 20 and fell back to Hugo 0.154.5 on missing config - both
incompatible with Hugo v0.161's css.TailwindCSS Node permission sandbox
(Node >= 22, npm @tailwindcss/cli required). Sites upgraded via
`hugoblox upgrade` (which only touches go.mod) hit this immediately.

- Bump NODE_VERSION 20 -> 22 in all 9 templates' .github/workflows/build.yml
- Bump fallback DEFAULT_VERSION 0.154.5 -> 0.161.0 to match the framework's
  new module.hugoVersion.min
- Add a "Verify Tailwind CSS dependency" step that fails fast with an
  actionable ::error message if @tailwindcss/cli is not resolvable,
  replacing Hugo's cryptic "binary tailwindcss is not a Node.js script"
2026-05-02 03:08:09 +01:00
George Cushen 6a2f1ba2ae fix(tpl): resolve broken assets on GitHub Pages subdirectory deployments
Add `actions/configure-pages` step to all template build workflows and
pass the detected base_url to `hugo --baseURL`, so sites deployed to
subdirectory paths (e.g. user.github.io/repo-name/) generate correct
asset URLs. Also fix leading-slash relURL calls in slides layout that
would ignore the baseURL path component.
2026-03-30 19:27:42 +01:00
George Cushen 26e1f775a2 chore(ci): bump GitHub Actions to Node.js 24-compatible versions
Bumps actions across all template and repo workflows to avoid the
Node.js 20 deprecation (enforced June 2026):
- actions/checkout v3/v4 → v6
- actions/cache v4 → v5
- actions/setup-go v5 → v6
- actions/setup-python v4/v5 → v6
- peter-evans/create-pull-request v5/v6 → v7
2026-03-30 19:20:15 +01:00
George Cushen 27313292ed chore(tpl): fix hugo version detection 2026-03-30 18:52:22 +01:00
George Cushen a139f74289 refactor(workflows): replace grep/awk with yq for robust YAML parsing
Pin yq v4.44.1 in all template workflows with retry logic,
error handling, and input validation.
2026-01-26 01:30:00 +00:00
George Cushen 34959c03b1 tpl(ci): modernize CI/CD workflows
- Refactor build into reusable workflow (DRY)
- Add deploy.host config to control deployment target
- Upgrade to latest action versions (Node 22, Go 1.23, Python 3.13)
- Add timeout-minutes and concurrency groups for safety
- Use github.run_id for unique PR branch names
- Fix package_json_path for standalone repo compatibility
- Scope GITHUB_TOKEN to specific steps for security
2026-01-24 03:05:12 +00:00
George Cushen dffe943e89 ci: edit 2026-01-10 00:36:15 +00:00
George Cushen b018a2d8ba tpl(ci): add GITHUB_TOKEN to avoid github rate limiting 2026-01-07 23:58:39 +00:00
George Cushen dd8be97667 ci: fix - switch from npx to pnpx 2026-01-07 21:41:57 +00:00
George Cushen 967404b3f0 feat: add hugoblox upgrade workflow 2026-01-07 17:22:16 +00:00
George Cushen 1c1d54bdc3 build: include Pagefind in package.json for local builds 2025-12-31 01:18:09 +00:00
George Cushen 652923712c tpl: detect license in CI builds 2025-12-16 20:25:22 +00:00
George Cushen f0eb4a7e9c feat: standardize author profiles & add devcontainer 2025-12-07 01:50:48 +00:00
George Cushen 966ad07a4f chore: re-gen lock files 2025-11-25 18:30:01 +00:00
github-actions[bot] a4510e10b3 chore(templates): bump modules and Hugo 2025-11-08 00:16:07 +00:00
George Cushen 5f2290d590 starters: standardise starters dir name to templates 2025-10-23 23:43:50 +01:00