Skip to content

Commit e0dd26b

Browse files
committed
ci: update workflows and publishing configuration
1 parent d903612 commit e0dd26b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/publish-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish Release
22
on:
33
push:
44
tags:
5-
- 'v4**'
5+
- 'v**'
66

77
concurrency:
88
cancel-in-progress: true
@@ -65,7 +65,7 @@ jobs:
6565
gradle-version: ${{ env.GRADLE_VERSION }}
6666

6767
- name: Publish releases
68-
run: gradle publishAndReleaseToMavenCentral -i --warning-mode all --no-configuration-cache -x test
68+
run: gradle publishToMavenCentral -i --warning-mode all --no-configuration-cache -x test
6969
env:
7070
SIMBOT_IS_SNAPSHOT: false
7171
SIMBOT_RELEASES_ONLY: true

.github/workflows/publish-snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
gradle-version: ${{ env.GRADLE_VERSION }}
8383

8484
- name: Publish snapshots
85-
run: gradle publishAllPublicationsToMavenCentralRepository -s --warning-mode all --no-configuration-cache
85+
run: gradle publishToMavenCentral -s --warning-mode all --no-configuration-cache
8686
env:
8787
SIMBOT_IS_SNAPSHOT: true
8888
ORG_GRADLE_PROJECT_org.gradle.jvmargs: "-Xmx8g -Xms2g -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8"

buildSrc/src/main/kotlin/simbot-onebot-multiplatform-maven-publish.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ setup(P.ComponentOneBot)
3131
val p = project
3232

3333
mavenPublishing {
34-
publishToMavenCentral()
34+
publishToMavenCentral(automaticRelease = true)
3535
if (!isSimbotLocal()) {
3636
signAllPublications()
3737
}

0 commit comments

Comments
 (0)