From 78bad2f8c24ed585a0f4750b5a74f3dbd8369121 Mon Sep 17 00:00:00 2001 From: Jose Luis Leon Date: Sun, 3 Nov 2024 21:28:34 -0500 Subject: [PATCH] chore(publish): Use env vars instead of preparePublish task --- .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 37dfaef..a2deeb9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,8 +40,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 ab54906..9d10edd 100644 --- a/build.gradle +++ b/build.gradle @@ -151,20 +151,6 @@ gradlePlugin { testSourceSets.add(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) -}