fix(scanner): fix book insertion query #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 'lts/*' | |
| - name: Install Zig | |
| uses: mlugg/setup-zig@v2 | |
| with: | |
| version: 0.15.2 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build release binaries | |
| run: | | |
| mkdir -p dist | |
| # Build for Linux x86_64 (with bundled SQLite) | |
| zig build -Doptimize=ReleaseSafe -Dtarget=x86_64-linux-musl | |
| mkdir -p package | |
| cp zig-out/bin/dust-server package/ | |
| find .zig-cache -name "libsqlite.so" -type f -exec cp {} package/ \; 2>/dev/null || true | |
| tar -czf dist/dust-server-linux-x86_64.tar.gz -C package . | |
| rm -rf package | |
| # Build for Linux aarch64 (with bundled SQLite) | |
| zig build -Doptimize=ReleaseSafe -Dtarget=aarch64-linux-musl | |
| mkdir -p package | |
| cp zig-out/bin/dust-server package/ | |
| find .zig-cache -name "libsqlite.so" -type f -exec cp {} package/ \; 2>/dev/null || true | |
| tar -czf dist/dust-server-linux-aarch64.tar.gz -C package . | |
| rm -rf package | |
| # Build for macOS x86_64 | |
| zig build -Doptimize=ReleaseSafe -Dtarget=x86_64-macos | |
| mkdir -p package | |
| cp zig-out/bin/dust-server package/ | |
| find .zig-cache -name "libsqlite.dylib" -o -name "libsqlite.so" -type f -exec cp {} package/ \; 2>/dev/null || true | |
| tar -czf dist/dust-server-macos-x86_64.tar.gz -C package . | |
| rm -rf package | |
| # Build for macOS aarch64 (Apple Silicon) | |
| zig build -Doptimize=ReleaseSafe -Dtarget=aarch64-macos | |
| mkdir -p package | |
| cp zig-out/bin/dust-server package/ | |
| find .zig-cache -name "libsqlite.dylib" -o -name "libsqlite.so" -type f -exec cp {} package/ \; 2>/dev/null || true | |
| tar -czf dist/dust-server-macos-aarch64.tar.gz -C package . | |
| rm -rf package | |
| - name: Release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: npx semantic-release |