diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 847d18ddd..6b5383436 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: with: cache-read-only: true # Disable CC due to https://github.com/gradle/gradle/issues/22779 - - run: ./gradlew publish publishPlugins gitPublishCopy --no-configuration-cache + - run: ./gradlew release --no-configuration-cache env: GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_KEY }} GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_SECRET }} diff --git a/gradle/publish.gradle b/gradle/publish.gradle index 3820acd1c..85132f6ea 100644 --- a/gradle/publish.gradle +++ b/gradle/publish.gradle @@ -22,3 +22,7 @@ gradlePlugin { tasks.named('publishPlugins') { notCompatibleWithConfigurationCache("https://github.com/gradle/gradle/issues/21283") } + +tasks.register('release') { + dependsOn tasks.named('publishPlugins'), tasks.named('publishPlugins'), tasks.named('gitPublishPush') +}