diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 2ac0180..9e4ee82 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -42,8 +42,8 @@ jobs: run: ./gradlew publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GROUP_ID: com.github.${{ env.REPOSITORY_NAME }} - ARTIFACT_NAME: "${{ env.REPOSITORY_NAME }}" + ARTIFACT_GROUP_ID: com.github.${{ env.REPOSITORY_OWNER }} + ARTIFACT_ID: "${{ env.REPOSITORY_NAME }}" ARTIFACT_VERSION: "0.0.1-publish-test" REPOSITORY_NAME: "${{ env.REPOSITORY_NAME }}" REPOSITORY_OWNER: "${{ env.REPOSITORY_OWNER }}" diff --git a/build.gradle b/build.gradle index 4f52b8f..6b58fb0 100644 --- a/build.gradle +++ b/build.gradle @@ -472,8 +472,8 @@ publishing { archives source: apiJar, classifier: "api" } - groupId = System.getenv("GROUP_ID") ?: group - artifactId = System.getenv("ARTIFACT_NAME") ?: project.name + groupId = System.getenv("ARTIFACT_GROUP_ID") ?: group + artifactId = System.getenv("ARTIFACT_ID") ?: project.name version = System.getenv("ARTIFACT_VERSION") ?: project.version } }