From 4f91f467f2fd4cd2d0ec29edab24a5e93d0e3949 Mon Sep 17 00:00:00 2001 From: tonywangcn Date: Tue, 17 Nov 2026 14:45:05 +0800 Subject: [PATCH 1/2] ci: support Central-only release retries --- .github/workflows/release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 241ba21..b469c2a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,12 @@ on: push: tags: ["v*"] workflow_dispatch: + inputs: + central_only: + description: "Retry Maven Central only; skip the already-published GitHub Packages version" + type: boolean + required: true + default: true permissions: contents: read @@ -27,6 +33,15 @@ jobs: server-password: MAVEN_CENTRAL_PASSWORD gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE + - name: Require Central publishing for manual retry + if: ${{ github.event_name == 'workflow_dispatch' && inputs.central_only }} + env: + PUBLISH_CENTRAL: ${{ vars.PUBLISH_CENTRAL }} + run: | + if [ "$PUBLISH_CENTRAL" != "true" ]; then + echo "Central-only retry requested, but PUBLISH_CENTRAL is not enabled." >&2 + exit 1 + fi - name: Verify tag matches version if: startsWith(github.ref, 'refs/tags/') run: | @@ -51,6 +66,7 @@ jobs: # account needed. The central-publishing plugin is confined to the # `release` profile, so a plain `deploy` only targets GitHub Packages. - name: Publish to GitHub Packages + if: ${{ github.event_name != 'workflow_dispatch' || !inputs.central_only }} run: > ./mvnw -B -DskipTests deploy -s .github/settings.xml From fa2e7a2000f0ddc51fe7ffbe54e9908ea7c728f2 Mon Sep 17 00:00:00 2001 From: tonywangcn Date: Tue, 17 Nov 2026 14:49:07 +0800 Subject: [PATCH 2/2] docs: clarify Java Maven Central availability --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b0e494f..802a8fa 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ JDK's `java.net.http.HttpClient` with a hand-written JSON parser). - **Base URL:** `https://api.crawlora.net/api/v1` - **Auth:** API key (`x-api-key`) or JWT (`Authorization`) - **JDK:** 17+ +- **SDK source version:** `1.52.0` (5,106 operations). Maven Central currently serves `1.51.0`; `1.52.0` is pending there. - Operation reference: [`docs/operations.md`](docs/operations.md) ยท recipes: [`docs/recipes.md`](docs/recipes.md) ## Install @@ -24,7 +25,7 @@ Maven: net.crawlora crawlora-sdk - 1.50.0 + 1.51.0 ```