Skip to content

Commit

Permalink
Undo moving publishing block, remove signing as it is probably not ne…
Browse files Browse the repository at this point in the history
…cessary.
  • Loading branch information
itsmattking committed Aug 3, 2024
1 parent 547eec0 commit efef3f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-ghp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
- uses: gradle/gradle-build-action@v3
- uses: gradle/actions/setup-gradle@v3
- name: Publish package
run: ./gradlew publishMavenPublicationToGitHubPackagesRepository
env:
Expand Down
20 changes: 9 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,18 @@ tasks.test {
useJUnitPlatform()
}


mavenPublishing {
publishing {
repositories {
maven("https://maven.pkg.github.com/sainsburys-tech/k2zpl") {
name = "GitHubPackages"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
publishing {
repositories {
maven("https://maven.pkg.github.com/sainsburys-tech/k2zpl") {
name = "GitHubPackages"
credentials {
password = System.getenv("GITHUB_TOKEN")
username = System.getenv("GITHUB_ACTOR")
}
}
}
signAllPublications()
}
mavenPublishing {
coordinates("com.sainsburys.k2zpl", "k2zpl", "0.1.0")
pom {
name.set("k2zpl")
Expand Down

0 comments on commit efef3f1

Please sign in to comment.