Skip to content

Commit

Permalink
Test Commit 4
Browse files Browse the repository at this point in the history
  • Loading branch information
KhanhPham05 committed Sep 23, 2023
1 parent 726c381 commit 675f811
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ jobs:
with:
arguments: publish
env:
gpr.username: ${{ github.actor }}
gpr.token: ${{ secrets.GITHUB_TOKEN }}
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 changes: 4 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -186,18 +186,15 @@ tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
}


def gitCreds = {
username = property('gpr.username')
password = property('gpr.token')
}

publishing {
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/khanhpham05/typolibrary"
credentials gitCreds
credentials {
username = System.getProperty("USERNAME")
password = System.getProperty("TOKEN")
}
}
}
}

0 comments on commit 675f811

Please sign in to comment.