Skip to content

Commit

Permalink
SDK regeneration (#9)
Browse files Browse the repository at this point in the history
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
  • Loading branch information
fern-api[bot] authored Jan 3, 2025
1 parent bfb951c commit a88ee27
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ jobs:

- name: Publish to maven
run: |
./.publish/prepare.sh
./gradlew publish
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
MAVEN_PUBLISH_REGISTRY_URL: "https://s01.oss.sonatype.org/content/repositories/releases/"
MAVEN_PUBLISH_REGISTRY_URL: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
MAVEN_SIGNATURE_KID: ${{ secrets.MAVEN_SIGNATURE_KID }}
MAVEN_SIGNATURE_SECRET_KEY: ${{ secrets.MAVEN_SIGNATURE_SECRET_KEY }}
MAVEN_SIGNATURE_PASSWORD: ${{ secrets.MAVEN_SIGNATURE_PASSWORD }}
8 changes: 8 additions & 0 deletions .publish/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Write key ring file
echo "$MAVEN_SIGNATURE_SECRET_KEY" > armored_key.asc
gpg -o publish_key.gpg --dearmor armored_key.asc

# Generate gradle.properties file
echo "signing.keyId=$MAVEN_SIGNATURE_KID" > gradle.properties
echo "signing.secretKeyRingFile=publish_key.gpg" >> gradle.properties
echo "signing.password=$MAVEN_SIGNATURE_PASSWORD" >> gradle.properties
15 changes: 14 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ plugins {
id 'java-library'
id 'maven-publish'
id 'com.diffplug.spotless' version '6.11.0'
id 'signing'
}

repositories {
mavenCentral()
maven {
url 'https://s01.oss.sonatype.org/content/repositories/releases/'
url 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
}
}

Expand Down Expand Up @@ -37,6 +38,9 @@ java {
withJavadocJar()
}

signing {
sign(publishing.publications)
}
test {
useJUnitPlatform()
testLogging {
Expand All @@ -51,6 +55,15 @@ publishing {
version = '1.1.0'
from components.java
pom {
name = 'schematic'
description = 'The official SDK of schematic'
url = 'https://buildwithfern.com'
developers {
developer {
name = 'schematic'
email = 'developers@schematic.com'
}
}
scm {
connection = 'scm:git:git://github.com/schematichq/schematic-java.git'
developerConnection = 'scm:git:git://github.com/schematichq/schematic-java.git'
Expand Down
Empty file added gradle.properties
Empty file.

0 comments on commit a88ee27

Please sign in to comment.