Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,7 +25,7 @@ Maven:
<dependency>
<groupId>net.crawlora</groupId>
<artifactId>crawlora-sdk</artifactId>
<version>1.50.0</version>
<version>1.51.0</version>
</dependency>
```

Expand Down
Loading