Skip to content

Commit 1566896

Browse files
chore: change release action (#88)
1 parent 58d231a commit 1566896

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/publish-release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Publish Release
22

33
on:
4+
workflow_dispatch:
45
push:
56
tags:
67
- 'v*'
@@ -30,13 +31,9 @@ jobs:
3031
run: |
3132
echo "VERSION_NAME=$(cat gradle.properties | grep -w "VERSION_NAME" | cut -d'=' -f2)" >> $GITHUB_ENV
3233
33-
- name: Upload release
34-
run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-daemon --no-parallel
34+
- name: Upload and Publish artifacts
35+
run: ./gradlew publishToMavenCentral --no-configuration-cache
3536
if: ${{ !endsWith(env.VERSION_NAME, '-SNAPSHOT') }}
3637
env:
3738
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_PRIVATE_KEY }}
3839
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
39-
40-
- name: Publish release
41-
run: ./gradlew closeAndReleaseRepository --no-daemon --no-parallel
42-
if: ${{ !endsWith(env.VERSION_NAME, '-SNAPSHOT') }}

dadb/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ val metadataDetector = objects.newInstance(DefaultJvmMetadataDetector::class.jav
2525
tasks.test {
2626
useJUnitPlatform()
2727
}
28+
29+
mavenPublishing {
30+
publishToMavenCentral(true)
31+
}

0 commit comments

Comments
 (0)