Skip to content

Commit

Permalink
chore(publish): Use env vars instead of preparePublish task
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLion committed Nov 4, 2024
1 parent 00e019a commit 78bad2f
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 @@ -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
Expand Down
14 changes: 0 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 78bad2f

Please # to comment.