Skip to content

Commit

Permalink
Still use GITHUB_TOKEN system property
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Aug 8, 2024
1 parent 8ffe309 commit 2745d7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ jobs:
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_SECRET }}
# https://ajoberstar.org/grgit/main/grgit-authentication.html#_environment_variables
GRGIT_USER: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USER }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }}
Expand Down
4 changes: 4 additions & 0 deletions gradle/ghPages.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import org.apache.tools.ant.filters.ReplaceTokens

apply plugin: 'org.ajoberstar.git-publish'

if (project.hasProperty('GITHUB_TOKEN')) {
System.setProperty('org.ajoberstar.grgit.auth.username', project.property('GITHUB_TOKEN') as String)
}

gitPublish {
repoUri = 'https://github.com/GradleUp/shadow.git'

Expand Down

0 comments on commit 2745d7a

Please sign in to comment.