20 Commits

Author SHA1 Message Date
wonder 6ee8c49641 ci: use npmmirror for pnpm global install
Deploy Slides / build-and-deploy (push) Successful in 1m43s
2026-07-18 00:01:49 +08:00
wonder ea67b98921 ci: use .npmrc for registry mirror instead of env var
Deploy Slides / build-and-deploy (push) Has been cancelled
2026-07-18 00:00:18 +08:00
wonder 4ecb9e4b18 ci: revert to npm install -g pnpm, corepack incompatible with devEngines format
Deploy Slides / build-and-deploy (push) Has been cancelled
2026-07-17 23:53:55 +08:00
wonder 82300007cb ci: remove cache step, Gitea instance lacks actions/cache
Deploy Slides / build-and-deploy (push) Failing after 10s
2026-07-17 23:52:57 +08:00
wonder 56d59030f7 ci: optimize deploy pipeline with mirror, cache, corepack, and nginx reuse
Deploy Slides / build-and-deploy (push) Failing after 1s
2026-07-17 23:51:34 +08:00
wonder 9f35d89961 fix: add nginx SPA fallback to resolve deck 404 on direct URL access
Deploy Slides / build-and-deploy (push) Successful in 1m50s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-28 15:40:52 +08:00
wonder 776e5b8f04 fix: use docker cp instead of volume mount for nginx deploy
Deploy Slides / build-and-deploy (push) Successful in 1m15s
The act runner's Docker volume mount path doesn't resolve to a
valid host path, causing 403 Forbidden from nginx. Copy files
directly into the container instead.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 13:44:46 +08:00
wonder 4e00b25b39 fix: set read permissions on dist/ for nginx container
Deploy Slides / build-and-deploy (push) Successful in 1m16s
The nginx:alpine image runs as UID 101 which can't read
root-owned files from the CI build. chmod o+rX allows the
nginx user to serve the static files.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 13:40:10 +08:00
wonder 679a8fb7d4 ci: revert to container with Aliyun Alpine mirror
Deploy Slides / build-and-deploy (push) Failing after 1m14s
act runner post-step runs in isolated context that can't find node
regardless of symlinks. Revert to container approach but switch to
Aliyun mirror for faster apk downloads (~2min → ~10s).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 13:32:55 +08:00
wonder bbf4f59e9b fix: symlink nvm node/npm to /usr/bin for act runner
Deploy Slides / build-and-deploy (push) Failing after 1s
Node is installed via nvm at /root/.nvm which isn't in the runner's
shell PATH. Symlink node, npm, npx to /usr/bin so they're available
in all contexts including post-step cleanup.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 13:31:21 +08:00
wonder 1be07cc0c5 fix: symlink node to /usr/bin for act runner post-step
Deploy Slides / build-and-deploy (push) Failing after 1s
GITHUB_PATH doesn't apply to post-step cleanup context. Symlink
node to /usr/bin so the runner can find it during cleanup.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 13:29:29 +08:00
wonder c246b1058e fix: add /usr/local/bin to PATH for act runner
Deploy Slides / build-and-deploy (push) Failing after 1s
The host has node installed but act runner shell steps don't include
it in PATH. Add it via GITHUB_PATH before checkout.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 13:27:58 +08:00
wonder 4c9183e5ad ci: remove container and install-tools step to run on host directly
Deploy Slides / build-and-deploy (push) Failing after 1s
The host runner already has git and docker-cli installed, so running
inside node:22-alpine container and installing tools is unnecessary.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 13:24:30 +08:00
wonder aea1fd3569 fix: use local Gitea checkout mirror to avoid GitHub network issues
Deploy Slides / build-and-deploy (push) Has been cancelled
The self-hosted Aliyun runner drops connections to github.com mid-clone
(GFW), causing unexpected EOF errors. Switch to a locally mirrored
actions/checkout and point it at the Gitea server for repo cloning.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 13:17:21 +08:00
wonder ead70bb547 fix: use container job to resolve act runner node PATH issue
Deploy Slides / build-and-deploy (push) Failing after 1m44s
act runner cannot find node in PATH during post-step cleanup. Running
all steps inside a node:22-alpine container ensures node is always
available. Removes actions/setup-node as it's no longer needed.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 12:59:19 +08:00
wonder c583e0519f fix: downgrade checkout and setup-node to v3 for act runner compatibility
Deploy Slides / build-and-deploy (push) Failing after 1m2s
v4 actions require Node 20 in PATH during post-step cleanup, which act
does not provide. v3 uses Node 16 that act bundles by default.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 12:54:14 +08:00
wonder 1e9cebbcb6 ci: add deploy workflow for Gitea Actions
Deploy Slides / build-and-deploy (push) Failing after 55s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 11:50:43 +08:00
wonder ca79b3819c test: skip checkout step (no node on runner)
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s
2026-05-27 00:35:28 +08:00
wonder 9f360cd18e fix: match runner label aliyun
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 11s
2026-05-27 00:33:47 +08:00
wonder ed7a6fa84b build: workflow test
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
2026-05-27 00:31:28 +08:00