Skip to content

Commit

Permalink
chore(release): Use env vars instead of preparePublish task (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLion authored Nov 11, 2024
1 parent 87335e0 commit 0c02231
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 0 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 0c02231

Please sign in to comment.