diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5b65801..3f951ff 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,7 +1,7 @@ name: Publish on: - push: + created: tags: - '*' diff --git a/build.gradle.kts b/build.gradle.kts index c62ed42..406f2a6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,7 +3,7 @@ buildscript { maven("https://mirrors.tencent.com/nexus/repository/maven-public") } dependencies { - classpath("com.vanniktech:gradle-maven-publish-plugin:0.18.0") + classpath("com.vanniktech:gradle-maven-publish-plugin:0.22.0") } } diff --git a/gradle.properties b/gradle.properties index e48da7f..a509350 100644 --- a/gradle.properties +++ b/gradle.properties @@ -21,4 +21,7 @@ POM_DEVELOPER_ID=bennyhuo POM_DEVELOPER_NAME=Benny Huo POM_DEVELOPER_URL=https://github.com/bennyhuo/ -KOTLIN_PLUGIN_ID=com.bennyhuo.kotlin.trimindent \ No newline at end of file +KOTLIN_PLUGIN_ID=com.bennyhuo.kotlin.trimindent + +SONATYPE_HOST=S01 +SONATYPE_AUTOMATIC_RELEASE=true \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 69a9715..aa991fc 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists