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