diff --git a/.github/workflows/publish-ghp.yaml b/.github/workflows/publish-ghp.yaml index 20f8fa6..33a8d64 100644 --- a/.github/workflows/publish-ghp.yaml +++ b/.github/workflows/publish-ghp.yaml @@ -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: diff --git a/build.gradle.kts b/build.gradle.kts index 80b0827..5ff0d96 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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")