From 0c0223110b25b596ce658c42b5b7ac7c18b6d7fe Mon Sep 17 00:00:00 2001 From: Jose Luis Leon Date: Sun, 10 Nov 2024 20:53:27 -0500 Subject: [PATCH] chore(release): Use env vars instead of preparePublish task (#134) --- .github/workflows/release.yml | 4 ++-- build.gradle | 14 -------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a8aa8f..3096d14 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,8 +39,8 @@ jobs: - run: yarn release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ORG_GRADLE_PROJECT_gradlePublishKey: ${{ secrets.GRADLE_PUBLISH_KEY }} - ORG_GRADLE_PROJECT_gradlePublishSecret: ${{ secrets.GRADLE_PUBLISH_SECRET }} + GRADLE_PUBLISH_KEY : ${{ secrets.GRADLE_PUBLISH_KEY }} + GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }} pages: uses: ./.github/workflows/pages.yml diff --git a/build.gradle b/build.gradle index 8008205..af892d3 100644 --- a/build.gradle +++ b/build.gradle @@ -140,20 +140,6 @@ gradlePlugin { testSourceSets(sourceSets.testkit) } -task preparePublish() { - doLast { - def publishKey = findProperty('gradlePublishKey') - def publishSecret = findProperty('gradlePublishSecret') - - System.properties.setProperty('gradle.publish.key', publishKey) - System.properties.setProperty('gradle.publish.secret', publishSecret) - } -} - tasks.named('check') { dependsOn(testing.suites.testkit) } - -tasks.named('publishPlugins') { - dependsOn(tasks.preparePublish) -}