Skip to content

Commit b8e89a7

Browse files
committed
ci: Add gradle publish to maven repo
1 parent f8834ee commit b8e89a7

File tree

3 files changed

+23
-21
lines changed

3 files changed

+23
-21
lines changed

.github/workflows/kotlin.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@ jobs:
2222
- name: "Set up JDK"
2323
uses: actions/setup-java@v5
2424
with:
25-
distribution: jetbrains
25+
distribution: temurin
2626
java-version: 21
2727

2828
- uses: dtolnay/[email protected]
2929
with:
3030
targets: x86_64-linux-android, aarch64-linux-android, armv7-linux-androideabi, i686-linux-android, aarch64-apple-ios, aarch64-apple-ios-sim, x86_64-apple-ios
31-
31+
3232
- name: Install Protoc
3333
uses: arduino/setup-protoc@v3
34+
with:
35+
repo-token: ${{ secrets.GITHUB_TOKEN }}
3436

3537
- name: Setup Task
3638
run: |
@@ -47,11 +49,16 @@ jobs:
4749
- name: "Build Android library"
4850
working-directory: libs/gl-sdk-android
4951
run: |
50-
./gradlew assemble --console=plain
52+
./gradlew :lib:assemble --console=plain
53+
54+
- name: "Puiblish to Maven"
55+
working-directory: libs/gl-sdk-android
56+
run: |
57+
./gradlew :lib:publishToMavenLocal
5158
5259
- name: Temporarily save artifact
5360
uses: actions/upload-artifact@v4
5461
with:
5562
name: glsdk-artifact
56-
path: libs/gl-sdk-android
57-
retention-days: 1
63+
path: libs/gl-sdk-android/lib/build/outputs/
64+
retention-days: 14

Taskfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ tasks:
5656
-t gltesting \
5757
-f docker/gl-testing/Dockerfile \
5858
.
59-
59+
6060
docker-ci-check:
6161
deps:
62-
# - docker-ci-build
62+
- docker-ci-build
6363
cmds:
6464
- docker run --rm -ti -v $(pwd):/repo gltesting task ci-check
6565

libs/gl-sdk-android/lib/build.gradle.kts

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ kotlin {
2222
val xcf = XCFramework()
2323
/*
2424
listOf(
25-
//iosArm64(),
26-
//iosSimulatorArm64()
25+
iosArm64(),
26+
iosSimulatorArm64()
2727
).forEach {
2828
2929
it.binaries.framework {
@@ -110,8 +110,8 @@ mavenPublishing {
110110
coordinates(groupId = "com.blockstream", artifactId = "glsdk", version = libraryVersion)
111111

112112
pom {
113-
name = "LWK"
114-
description = "Liquid Wallet Kit"
113+
name = "glsdk"
114+
description = "GreenlightSDK"
115115
url = "https://blockstream.com"
116116
licenses {
117117
license {
@@ -121,14 +121,9 @@ mavenPublishing {
121121
}
122122
developers {
123123
developer {
124-
id = "rcasatta"
125-
name = "Riccardo Casatta"
126-
127-
}
128-
developer {
129-
id = "leocomandini"
130-
name = "Leonardo Comandini"
131-
124+
id = "cdecker"
125+
name = "Christian Decker"
126+
132127
}
133128
}
134129
scm {
@@ -138,8 +133,8 @@ mavenPublishing {
138133
}
139134
}
140135

141-
publishToMavenCentral()
142-
signAllPublications()
136+
//publishToMavenCentral()
137+
//signAllPublications()
143138
}
144139

145140
extensions.configure<SigningExtension> {

0 commit comments

Comments
 (0)