Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: l-1squared <[email protected]>
  • Loading branch information
l-1squared committed Jan 12, 2024
1 parent d4ad9a9 commit b625a33
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/mock_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b625a33

Please sign in to comment.