Skip to content

Commit

Permalink
Fix github workflow#11
Browse files Browse the repository at this point in the history
  • Loading branch information
deepuvsdeepu committed Sep 13, 2024
1 parent a74b84a commit 0b22647
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ jobs:
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
# the publishing section of your build.gradle
- name: Publish to GitHub Packages
run: ./gradlew release publish
# FIXME: Gradle release publish. Refer: https://github.com/researchgate/gradle-release
# run: ./gradlew release publish
run: ./gradlew publish
env:
GH_USERNAME: ${{ github.actor }}
GH_TOKEN: ${{ secrets.GH_PUBLISH_TOKEN }}
Expand Down
4 changes: 0 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ publishing {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/pgullah/junit-spec-runner"
credentials {
println(">> project.findProperty(\"gpr.user\") " + project.findProperty("gpr.user"))
println(">> project.findProperty(\"gpr.key\") " + project.findProperty("gpr.key"))
getLogger().debug(">> project.findProperty(\"gpr.user\") " + project.findProperty("gpr.user"))
getLogger().debug(">> project.findProperty(\"gpr.key\") " + project.findProperty("gpr.key"))
username = System.getenv("GH_USERNAME")
password = System.getenv("GH_TOKEN")
}
Expand Down

0 comments on commit 0b22647

Please sign in to comment.