Skip to content

Commit cb49031

Browse files
authored
build: Add initial releaser configuration. (#8)
1 parent 8e6444b commit cb49031

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.ldrelease/config.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 2
2+
3+
publications:
4+
- url: https://oss.sonatype.org/content/groups/public/com/launchdarkly/launchdarkly-openfeature-serverprovider/
5+
description: Sonatype
6+
- url: https://javadoc.io/doc/com.launchdarkly/launchdarkly-openfeature-serverprovider
7+
description: documentation (javadoc.io)
8+
9+
jobs:
10+
- docker:
11+
image: gradle:7.6-jdk11
12+
template:
13+
name: gradle
14+
15+
branches:
16+
- name: main
17+
18+
documentation:
19+
gitHubPages: true
20+
21+
sdk:
22+
displayName: "Java OpenFeature Provider Server-Side"

.ldrelease/publish.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
set -ue
4+
5+
# Publish to Sonatype
6+
echo "Publishing to Sonatype"
7+
if [[ -n "${LD_RELEASE_IS_PRERELEASE}" ]]; then
8+
./gradlew publishToSonatype || {
9+
echo "Gradle publish/release failed" >&2
10+
exit 1
11+
}
12+
else
13+
./gradlew publishToSonatype closeAndReleaseRepository || {
14+
echo "Gradle publish/release failed" >&2
15+
exit 1
16+
}
17+
fi

0 commit comments

Comments
 (0)