mirror of
https://github.com/DeBrosOfficial/orama.git
synced 2026-06-16 22:54:12 +00:00
ci: fix release workflows and bump version to 0.122.4
- goreleaser: switch hooks to v1 string syntax (was map syntax, caused yaml unmarshal error on action v1.26.2) - release-apt: build ./cmd/cli and ./cmd/node as packages (was building single .go files, missed sibling files → undefined: runCLI) - publish-sdk: remove main-only guard; nightly releases now publish to npm with --tag nightly (stable releases still go to @latest) - bump VERSION to 0.122.4 for first end-to-end release pipeline test
This commit is contained in:
parent
10a0439eb5
commit
01b0a785b4
8
.github/workflows/publish-sdk.yml
vendored
8
.github/workflows/publish-sdk.yml
vendored
@ -20,7 +20,6 @@ jobs:
|
||||
publish:
|
||||
name: Build & Publish @debros/orama
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'workflow_dispatch' || github.event.release.target_commitish == 'main'
|
||||
defaults:
|
||||
run:
|
||||
working-directory: sdk
|
||||
@ -70,7 +69,12 @@ jobs:
|
||||
|
||||
- name: Publish
|
||||
if: github.event_name == 'release' || inputs.dry-run != true
|
||||
run: npm publish --access public
|
||||
run: |
|
||||
if [[ "${{ github.event.release.target_commitish }}" != "main" && "${{ github.event_name }}" == "release" ]]; then
|
||||
npm publish --access public --tag nightly
|
||||
else
|
||||
npm publish --access public
|
||||
fi
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
|
||||
4
.github/workflows/release-apt.yml
vendored
4
.github/workflows/release-apt.yml
vendored
@ -58,8 +58,8 @@ jobs:
|
||||
LDFLAGS="-X 'main.version=$VERSION' -X 'main.commit=$COMMIT' -X 'main.date=$DATE'"
|
||||
|
||||
mkdir -p build/usr/local/bin
|
||||
go build -ldflags "$LDFLAGS" -o build/usr/local/bin/orama cmd/cli/main.go
|
||||
go build -ldflags "$LDFLAGS" -o build/usr/local/bin/orama-node cmd/node/main.go
|
||||
go build -ldflags "$LDFLAGS" -o build/usr/local/bin/orama ./cmd/cli
|
||||
go build -ldflags "$LDFLAGS" -o build/usr/local/bin/orama-node ./cmd/node
|
||||
# Build the entire gateway package so helper files (e.g., config parsing) are included
|
||||
go build -ldflags "$LDFLAGS" -o build/usr/local/bin/orama-gateway ./cmd/gateway
|
||||
|
||||
|
||||
@ -9,8 +9,7 @@ env:
|
||||
|
||||
before:
|
||||
hooks:
|
||||
- cmd: go mod tidy
|
||||
dir: core
|
||||
- cd core && go mod tidy
|
||||
|
||||
builds:
|
||||
# orama CLI binary
|
||||
|
||||
@ -63,7 +63,7 @@ test-e2e-quick:
|
||||
|
||||
.PHONY: build clean test deps tidy fmt vet lint install-hooks push-devnet push-testnet rollout-devnet rollout-testnet release
|
||||
|
||||
VERSION := 0.122.3
|
||||
VERSION := 0.122.4
|
||||
COMMIT ?= $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown)
|
||||
DATE ?= $(shell date -u +%Y-%m-%dT%H:%M:%SZ)
|
||||
LDFLAGS := -X 'main.version=$(VERSION)' -X 'main.commit=$(COMMIT)' -X 'main.date=$(DATE)'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user