Skip to content

Commit 9f2606c

Browse files
committed
Fix GitHub Action
1 parent 0f374be commit 9f2606c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
distribution: 'temurin'
3030
java-version: '25'
3131
- name: Publish to Maven Central
32-
run: ./gradlew --no-daemon --info checkExisting publishToSonatype closeAndReleaseSonatypeStagingRepository -Phmcl.channel=$HMCL_UPDATE_CHANNEL
32+
run: ./gradlew --no-daemon --info publishToSonatype closeAndReleaseSonatypeStagingRepository -Phmcl.channel=$HMCL_UPDATE_CHANNEL
3333
env:
3434
SIGNING_KEY_ID: ${{ secrets.signingKeyId }}
3535
SIGNING_PASSWORD: ${{ secrets.signingPassword }}

build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ val checkExisting by tasks.registering(CheckExisting::class) {
3535
channel.set(hmclChannel)
3636
}
3737

38+
39+
tasks.named("publishToSonatype") {
40+
dependsOn(checkExisting)
41+
}
42+
43+
tasks.named("closeAndReleaseSonatypeStagingRepository") {
44+
dependsOn(checkExisting)
45+
}
46+
3847
val downloadArtifacts by tasks.registering(Download::class) {
3948
dependsOn(checkExisting)
4049

0 commit comments

Comments
 (0)