mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 11:07:10 +00:00
Publish pipeline: goreleaser + Maven Central + npm (#1)
* feat(cli): add Version var and version subcommand * build(gradle): introduce uatu.version property for lockstep releases * build(sdk-android): swap GitHub Packages for vanniktech Maven Central plugin * build(spec-api): make package publish-ready for npm * ci(release): add goreleaser config for cross-platform uatu CLI builds * ci: add ci and release GitHub Actions workflows * ci: restrict ci.yml to PR + workflow_dispatch (no direct push to master) * docs(release): add local release targets, env example, and install docs * build(sdk-android): make signAllPublications conditional on signing key * ci(release): stage sidecar JAR at embed path before go build * chore(spec-api): regenerate package-lock for updated package.json * ci: install protoc-gen-go plugins before buf generate * ci: bump Node to 22 (required for --experimental-strip-types)
This commit is contained in:
17 files changed
+556
-37
No files matched your search
@@ -11,7 +11,7 @@ SIDECAR_EMBED := internal/sidecar/assets/sidecar-all.jar
|
||||
SDK_AAR := sdk/android/build/outputs/aar/sdk-android-release.aar
|
||||
UATU_BIN := bin/uatu
|
||||
|
||||
.PHONY: bootstrap proto sidecar sdk-android sdk-android-publish uatu test test-go test-kotlin test-spec-api clean
|
||||
.PHONY: bootstrap proto sidecar sdk-android sdk-android-publish uatu test test-go test-kotlin test-spec-api clean release-cli release-android-local release-npm-dry
|
||||
|
||||
bootstrap:
|
||||
$(GO) mod download
|
||||
@@ -29,8 +29,7 @@ sdk-android:
|
||||
ANDROID_HOME=$(ANDROID_HOME) $(GRADLE) :sdk-android:assembleRelease
|
||||
|
||||
sdk-android-publish:
|
||||
@if [ -z "$$GH_TOKEN" ]; then echo "GH_TOKEN must be set" >&2; exit 1; fi
|
||||
ANDROID_HOME=$(ANDROID_HOME) $(GRADLE) :sdk-android:publish
|
||||
ANDROID_HOME=$(ANDROID_HOME) $(GRADLE) :sdk-android:publishToMavenLocal
|
||||
|
||||
uatu: $(UATU_BIN)
|
||||
|
||||
@@ -55,5 +54,18 @@ test-spec-api:
|
||||
|
||||
clean:
|
||||
$(GO) clean
|
||||
rm -rf bin
|
||||
rm -rf bin dist pkg/spec-api/dist
|
||||
$(GRADLE) clean
|
||||
|
||||
# Local release dry-runs. None of these touch remote registries.
|
||||
|
||||
release-cli:
|
||||
$(MAKE) sidecar
|
||||
goreleaser release --snapshot --clean
|
||||
|
||||
release-android-local:
|
||||
@if [ -f .env.local ]; then set -a; . ./.env.local; set +a; fi; \
|
||||
ANDROID_HOME=$(ANDROID_HOME) $(GRADLE) :sdk-android:publishToMavenLocal -Puatu.version=0.0.0-local
|
||||
|
||||
release-npm-dry:
|
||||
cd pkg/spec-api && npm ci && npm run build && npm pack --dry-run
|
||||
Reference in new issue
Block a user