Commit Graph
101 Commits
Author SHA1 Message Date
openhands 0c0540cf59 fix: yaml syntax in deploy workflow 2026-07-20 15:52:40 +02:00
openhands 0913e9d529 fix: merge release into deploy workflow for Gitea compatibility 2026-07-20 15:50:03 +02:00
openhands 02df513b18 debug: extensive logging in release workflow 2026-07-20 15:42:46 +02:00
openhands 323e2cd9d3 fix: generate changelog from bare repo before clone, use jq
Bare repo ensures all tags and full history are available.
Changelog saved before clone to avoid filesystem isolation issues.
2026-07-20 15:38:42 +02:00
openhands cb683b7322 chore: remove test workflow, clean up test tags 2026-07-20 15:36:55 +02:00
openhands c959487605 test: add tag trigger test workflow 2026-07-20 15:35:09 +02:00
openhands 26da114e0e fix: use curl+jq instead of Python for release creation
Eliminates potential Python/heredoc issues in Gitea Actions runner.
Full clone guarantees git history is available for changelog.
2026-07-20 15:29:54 +02:00
openhands 8badcd9c92 fix: full clone instead of shallow for proper changelog
Shallow clone (--depth 1) prevented git log from seeing full history.
Local bare repo clone is instant, so full clone adds no network delay.
2026-07-20 15:27:57 +02:00
openhands 25a8d6ab22 debug: add extensive logging to release workflow
Writes debug output to /tmp/release-debug.log for post-mortem analysis.
2026-07-20 15:23:14 +02:00
openhands 57ef6289ff fix: generate changelog via Python subprocess for reliability
Previous approaches using temp files or env vars failed in Gitea runner.
Python now runs git commands directly via subprocess, reads stdout,
and builds the JSON payload — no intermediate files or shell escaping.
2026-07-20 15:21:12 +02:00
openhands 80bf3bb0d5 fix: use local checkout for changelog generation
Bare git repo has no HEAD; git log without --all showed nothing.
Now uses /var/www/atom-nexst (full checkout with proper HEAD).
Also adds debug output and handles first-release edge case.
2026-07-20 15:16:19 +02:00
openhands 15ed8ffbf0 fix: generate release changelog from full local repo
Shallow clone (depth 1) only has one commit, so git log was empty.
Now generates changelog from the bare repo before cloning, and uses
Python to build the JSON payload for proper multiline escaping.
2026-07-20 15:11:59 +02:00
openhands df604bf432 fix: copy .env into temp clone for Prisma build 2026-07-20 15:06:25 +02:00
openhands 73a36d503a fix: combine release workflow into single run block
Each Gitea Actions step is a separate shell session; git context did not
persist between steps. All steps are now in one run block.
2026-07-20 15:03:11 +02:00
openhands 9b8a0e5075 ci: add Gitea release workflow on tag push
Creates an automated Gitea release with changelog when a tag (v*) is pushed.
Requires GITEA_TOKEN secret in Gitea with repository write access.
2026-07-20 14:59:51 +02:00
SimoandCursor 224ccd654b perf(deploy): keep .next/cache while clearing stale generated types
Nuclear src replace already guarantees clean sources; restoring the build cache speeds deploys without reintroducing sticky typecheck ghosts.

Co-authored-by: Cursor <[email protected]>
2026-07-18 21:15:52 +02:00
SimoandCursor 80c6559143 fix(deploy): stop hanging on per-file sticky-bit scan
Only clear paths that already have skip-worktree/assume-unchanged; keep nuclear src replace and content verify.

Co-authored-by: Cursor <[email protected]>
2026-07-18 20:34:34 +02:00
SimoandCursor d0f9b3ef95 fix(deploy): nuclear-replace src to defeat skip-worktree ghosts
Host built a different event-form than HEAD while git looked clean; delete src, restore from git objects, and hash-verify every tracked blob.

Co-authored-by: Cursor <[email protected]>
2026-07-18 20:30:21 +02:00
SimoandCursor 968f6ff7db fix(deploy): unstick nitro Json typecheck and wipe poisoned .next cache
Host next build still saw Json on nitro while tsc passed; use any helpers, verify blob hash, and delete .next entirely before build.

Co-authored-by: Cursor <[email protected]>
2026-07-18 20:14:50 +02:00
SimoandCursor 1abbf3fde7 fix(deploy): sync rooms Prisma types and harden checkout against stale host files
next build failed on host-local rooms.ts using Prisma without import while tsc incremental passed; force non-incremental typecheck and verify src matches HEAD.

Co-authored-by: Cursor <[email protected]>
2026-07-18 20:06:34 +02:00
SimoandCursor c053b8de87 fix(deploy): reclaim www-data ownership before git reset
Stale host sources survived reset when files were owned by www-data, leaving an old nitro editor with a removed Json type that failed typecheck.

Co-authored-by: Cursor <[email protected]>
2026-07-18 20:01:25 +02:00
SimoandCursor b22725d3a9 fix: type-safe nitro editor helpers and stabilize deploy build
Rewrite getNested/updateNested without fragile any/Json inference, clear stale .next types before build, and skip env refine during compile.

Co-authored-by: Cursor <[email protected]>
2026-07-18 19:57:33 +02:00
SimoandCursor 6b884ad25a Harden deploy gates, prod AUTH_SECRET, and Sentry error reporting.
Align onlyBuiltDependencies with the workspace, fail fast without AUTH_SECRET in production, and delete catalog_items via VARCHAR-safe SQL so page deletes do not leave orphans.

Co-authored-by: Cursor <[email protected]>
2026-07-18 19:32:15 +02:00
SimoandCursor bb7d581084 Add exportPermissions and clean stray untracked src on deploy.
Co-authored-by: Cursor <[email protected]>
2026-07-17 18:48:34 +02:00
remco 15966bcf6d Update .gitea/workflows/deploy.yaml 2026-07-15 21:57:02 +02:00
remco 64db83c5d3 Update .gitea/workflows/deploy.yaml 2026-07-15 21:54:27 +02:00
remco 3802a1cfb0 Update .gitea/workflows/deploy.yaml 2026-07-15 21:52:39 +02:00
openhands 1908136071 ci: kill lingering next-server before restarting service to avoid EADDRINUSE 2026-07-13 22:16:20 +02:00
openhands 2e4ed76121 style: format code with prettier 2026-07-12 21:07:34 +02:00
remco e85e4d74ea revert fb8e77bb68
revert style: clean up code with prettier and eslint
2026-07-12 21:02:03 +02:00
openhands fb8e77bb68 style: clean up code with prettier and eslint 2026-07-12 20:31:05 +02:00
Simo 41002aa36d fix: preserve Next.js deploy cache 2026-07-12 15:17:16 +02:00
remco 2e1c258bf4 Update .gitea/workflows/deploy.yaml 2026-07-12 14:25:13 +02:00
Simo 685033dcbd Update .gitea/workflows/deploy.yaml 2026-07-12 14:22:07 +02:00
remco 149dc215f0 Update .gitea/workflows/deploy.yaml 2026-07-12 14:20:07 +02:00
Simo 48047f2782 Update .gitea/workflows/deploy.yaml 2026-07-12 14:11:06 +02:00
Simo ec7257f4ea Update .gitea/workflows/deploy.yaml 2026-07-12 14:09:57 +02:00
Simo 50496b20be Update .gitea/workflows/deploy.yaml 2026-07-12 14:08:44 +02:00
remco 41f0ae38b6 Update .gitea/workflows/deploy.yaml 2026-07-12 14:06:26 +02:00
remco 62e3c1f777 Update .gitea/workflows/deploy.yaml 2026-07-12 14:01:53 +02:00
remco 3d7bd16e29 Update .gitea/workflows/deploy.yaml 2026-07-12 13:52:17 +02:00
remco e588fc8162 Update .gitea/workflows/deploy.yaml 2026-07-12 13:51:29 +02:00
remco a758cb3bfe Update .gitea/workflows/deploy.yaml 2026-07-12 13:50:24 +02:00
Simo 9b1bc2fd09 Update .gitea/workflows/deploy.yaml 2026-07-12 13:48:13 +02:00
Simo 69ca4b035b Update .gitea/workflows/deploy.yaml 2026-07-12 13:45:34 +02:00
remco 9628c5d248 Update .gitea/workflows/deploy.yaml 2026-07-12 13:42:12 +02:00
remco 47bd05f0d9 Update .gitea/workflows/deploy.yaml 2026-07-12 11:34:08 +02:00
remco 18543134c6 Update .gitea/workflows/deploy.yaml 2026-07-12 11:32:56 +02:00
remco e67b102577 Update .gitea/workflows/deploy.yaml 2026-07-12 11:30:09 +02:00
remco 16dced5051 Update .gitea/workflows/deploy.yaml 2026-07-12 11:29:14 +02:00