Skip to content

Commit

Permalink
Rewrite OSSRH props so it would not be required
Browse files Browse the repository at this point in the history
magx2 committed Oct 28, 2024
1 parent c026ef7 commit fffdfe7
Showing 5 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checkForProtoUpdate.yml
Original file line number Diff line number Diff line change
@@ -21,4 +21,4 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
- name: Check for Proto Update with Gradle Wrapper
run: ./gradlew checkForProtoUpdate -PossrhUsername=ignore -PossrhPassword=ignore2
run: ./gradlew checkForProtoUpdate
2 changes: 1 addition & 1 deletion .github/workflows/gradle-PR.yml
Original file line number Diff line number Diff line change
@@ -17,4 +17,4 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
- name: Build with Gradle Wrapper
run: ./gradlew build -PossrhUsername=ignore -PossrhPassword=ignore2
run: ./gradlew build
4 changes: 0 additions & 4 deletions .github/workflows/gradle-master.yml
Original file line number Diff line number Diff line change
@@ -27,8 +27,6 @@ jobs:
echo -n "$SECRET_KEY_RING_BASE64" | base64 --decode > secring.gpg
./gradlew build \
publishAllPublicationsToGithubSnapshotsRepository \
-PossrhUsername=ignore1 \
-PossrhPassword=ignore2 \
-Psigning.keyId=$KEY_ID \
-Psigning.password=$PASSWORD \
-Psigning.secretKeyRingFile=$(realpath ./secring.gpg) \
@@ -47,5 +45,3 @@ jobs:
distribution: 'temurin'
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
with:
additional-arguments: -PossrhUsername=ignore -PossrhPassword=ignore2
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -28,8 +28,6 @@ jobs:
git config --global user.email 'actions@github.com'
./gradlew clean releaseVersion \
-PossrhUsername=ignore \
-PossrhPassword=ignore2 \
-Psigning.keyId=ignore3 \
-Psigning.password=ignore4
git add gradle.properties
@@ -62,7 +60,7 @@ jobs:
exit 33
fi
./gradlew nextSnapshot -PossrhUsername=ignore -PossrhPassword=ignore2
./gradlew nextSnapshot
git add gradle.properties
git commit -m "Update jSuplaVersion to SNAPSHOT version in gradle.properties"
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -173,8 +173,8 @@ prodProjects {
name = "sonatype"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = ossrhUsername
password = ossrhPassword
username = findProperty("ossrhUsername") ?: System.getenv("OSSRH_USERNAME") ?: ""
password = findProperty("ossrhPassword") ?: System.getenv("OSSRH_PASSWORD") ?: ""
}
}

0 comments on commit fffdfe7

Please sign in to comment.