mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-14 12:16:54 +00:00
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:
1 parent
57754a569b
commit
7f19db14f5
2 files changed
+11
-5
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user