From efda10fc22470e3ce386475a609096239cc7a4df Mon Sep 17 00:00:00 2001 From: "gero.lindner" Date: Mon, 22 Jan 2024 21:39:47 +0100 Subject: [PATCH] Fix task 7 --- .gitea/workflows/publish.yaml | 6 ++++-- build.gradle | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 66e342e..be7c713 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -13,5 +13,7 @@ jobs: with: distribution: "temurin" java-version: "17" - - name: Build project - run: ./gradlew build \ No newline at end of file + - name: Test project + run: ./gradlew test + - name: Publish project + run: ./gradlew publishAllPublicationsToGiteaRepository \ No newline at end of file diff --git a/build.gradle b/build.gradle index 9de1c83..709a55b 100644 --- a/build.gradle +++ b/build.gradle @@ -41,7 +41,7 @@ publishing { credentials(HttpHeaderCredentials) { name = "Authorization" - value = "token " + System.getenv("GITEA_PERSONAL_ACCESS_TOKEN") + value = "token " + System.getenv("PERSONAL_ACCESS_TOKEN") } authentication {