From b625a33a1f714fd7c0f7ea54086652d5d7edf523 Mon Sep 17 00:00:00 2001 From: l-1squared <30831153+l-1squared@users.noreply.github.com> Date: Fri, 12 Jan 2024 12:09:37 +0100 Subject: [PATCH] test Signed-off-by: l-1squared <30831153+l-1squared@users.noreply.github.com> --- .github/workflows/mock_release.yaml | 5 +++-- build.gradle | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mock_release.yaml b/.github/workflows/mock_release.yaml index 7a1bae2050b..c62de7978c6 100644 --- a/.github/workflows/mock_release.yaml +++ b/.github/workflows/mock_release.yaml @@ -53,10 +53,11 @@ jobs: - name: set an alternate version run: "source scripts/source_files/helper_functions.sh && updateAllVersionInformation ${VERSION}" - name: Attempt mock release + #TODO publish all run: > - ./gradlew test publishMavenPublicationToMavenLocal publishMavenPublicationToMavenRepository + ./gradlew jgiven-android:publishMavenPublicationToMavenRepository -PsigningKey="$(gpg --batch --pinentry-mode=loopback --yes --passphrase "${GPG_PASSWORD}" --armor --export-secret-key "${GPG_KEY_ID}")" - -PsigningPassword="${GPG_PASSWORD}" -Ppublishing.releaseUrl=https://localhost:8443 -Ppublishing.allowInsecureProtocol=false + -PsigningPassword="${GPG_PASSWORD}" -PmavenRepo.releaseUrl=https://localhost:8443 --info --stacktrace env: RELEASE: TRUE diff --git a/build.gradle b/build.gradle index 9859388a219..73125eba198 100644 --- a/build.gradle +++ b/build.gradle @@ -120,8 +120,11 @@ subprojects { repositories { maven { String releaseUrl = project["mavenRepo.releaseUrl"] - String snapshotUrl = project["mavenRepo.releaseUrl"] + String snapshotUrl = project["mavenRepo.snapshotUrl"] + println("releaseUrl: " + releaseUrl) + println("snapshotUrl: " + snapshotUrl) url = System.env.RELEASE == "true" ? releaseUrl : snapshotUrl + println("url: " + url) credentials { username = sonatypeUsername password = sonatypePassword