diff --git a/.github/workflows/push_lib_widget.yml b/.github/workflows/push_lib_widget.yml index 359f9f9..e47cf32 100644 --- a/.github/workflows/push_lib_widget.yml +++ b/.github/workflows/push_lib_widget.yml @@ -43,6 +43,9 @@ jobs: git config --global user.name "GitHub Actions" git commit -am "Update versionCode" git push + - name: 发布 + run: | + ./gradlew :lib:widget:publish build: runs-on: ubuntu-latest diff --git a/lib/widget/build.gradle b/lib/widget/build.gradle index ca35bbd..2e4ea9c 100644 --- a/lib/widget/build.gradle +++ b/lib/widget/build.gradle @@ -4,6 +4,10 @@ plugins { id 'com.vanniktech.maven.publish' } +mavenPublishing{ + coordinates("io.github.dango-dx", "lib_widget", "${VERSION_INFIX}.${VERSION_FIX}") +} + android { namespace 'com.dango.dx.lib.widget' compileSdk 33 diff --git a/lib/widget/gradle.properties b/lib/widget/gradle.properties index 4625296..3b1fac2 100644 --- a/lib/widget/gradle.properties +++ b/lib/widget/gradle.properties @@ -1,6 +1,4 @@ # -POM_ARTIFACT_ID=lib_widget -VERSION_INFIX = 1.0.0004 +VERSION_INFIX = 1.0.0 VERSION_FIX = 0004 -VERSION_NAME=$VERSION_INFIX.$VERSION_FIX SONATYPE_AUTOMATIC_RELEASE=true \ No newline at end of file