fix(install): bundle migrations in release tarball and install script (#249)

The install script only copied the binary, so `goclaw migrate up` and
`goclaw onboard` failed when run from the installed location because the
migrations directory was missing.

- Include migrations/ in the release tarball
- Install migrations to /usr/local/share/goclaw/migrations
- Guide users to export GOCLAW_MIGRATIONS_DIR before onboard
- Align next-steps output with onboard's own instructions
This commit is contained in:
Thieu Nguyen authored and GitHub committed 2026-03-18 07:32:53 +07:00
1 parent 57754a569b
commit 7f19db14f5
2 files changed
+11 -5

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ jobs:
CGO_ENABLED=0 go build \
-ldflags="-s -w -X github.com/nextlevelbuilder/goclaw/cmd.Version=${VERSION}" \
-o goclaw .
tar -czf "goclaw-${{ needs.release.outputs.version }}-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz" goclaw
tar -czf "goclaw-${{ needs.release.outputs.version }}-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz" goclaw migrations/
- name: Upload to release
env: