Skip to content

Commit

Permalink
Fix publish workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
stelitop committed Aug 25, 2024
1 parent 241b7d4 commit f9f758c
Show file tree
Hide file tree
Showing 2 changed files with 9 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 @@ -32,14 +32,14 @@ jobs:
- name: Build with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
arguments: build -x bootJar
arguments: library:build -x bootJar

# 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
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
arguments: publish
arguments: library:publish
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GHP_TOKEN }}
14 changes: 7 additions & 7 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies {
testImplementation 'org.mockito:mockito-core:5.4.0'
}

//publishing {
publishing {
// repositories {
// maven {
// name = "mad4j"
Expand All @@ -51,12 +51,12 @@ dependencies {
// }
// }
// }
// publications {
// gpr(MavenPublication) {
// from(components.java)
// }
// }
//}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}

tasks.named('test') {
useJUnitPlatform()
Expand Down

0 comments on commit f9f758c

Please sign in to comment.