Skip to content

Commit 0c02231

Browse files
authored
chore(release): Use env vars instead of preparePublish task (#134)
1 parent 87335e0 commit 0c02231

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
- run: yarn release
4040
env:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
ORG_GRADLE_PROJECT_gradlePublishKey: ${{ secrets.GRADLE_PUBLISH_KEY }}
43-
ORG_GRADLE_PROJECT_gradlePublishSecret: ${{ secrets.GRADLE_PUBLISH_SECRET }}
42+
GRADLE_PUBLISH_KEY : ${{ secrets.GRADLE_PUBLISH_KEY }}
43+
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
4444

4545
pages:
4646
uses: ./.github/workflows/pages.yml

build.gradle

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -140,20 +140,6 @@ gradlePlugin {
140140
testSourceSets(sourceSets.testkit)
141141
}
142142

143-
task preparePublish() {
144-
doLast {
145-
def publishKey = findProperty('gradlePublishKey')
146-
def publishSecret = findProperty('gradlePublishSecret')
147-
148-
System.properties.setProperty('gradle.publish.key', publishKey)
149-
System.properties.setProperty('gradle.publish.secret', publishSecret)
150-
}
151-
}
152-
153143
tasks.named('check') {
154144
dependsOn(testing.suites.testkit)
155145
}
156-
157-
tasks.named('publishPlugins') {
158-
dependsOn(tasks.preparePublish)
159-
}

0 commit comments

Comments
 (0)