Skip to content

Commit

Permalink
fix: add checks for ossrh temporary
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Ribó <[email protected]>
  • Loading branch information
elribonazo committed Jul 12, 2024
1 parent 143100d commit ca92ba5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ jobs:
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Check Nexus access
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
run: |
curl -u $OSSRH_USERNAME:$OSSRH_TOKEN https://oss.sonatype.org/service/local/repositories/releases/content/
- name: "Validate Gradle Wrapper"
run: pwd

Expand Down
10 changes: 10 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ buildscript {
gradlePluginPortal()
google()
mavenCentral()
maven {
name = "OSSRH"
url = uri("hhttps://oss.sonatype.org/service/local/repositories/releases/content/")
credentials {
username = project.findProperty("sonatypeUsername") as String? ?: System.getenv("OSSRH_USERNAME")
password = project.findProperty("sonatypePassword") as String? ?: System.getenv("OSSRH_TOKEN")
}
}

}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23")
Expand Down Expand Up @@ -174,6 +183,7 @@ nexusPublishing {
snapshotRepositoryUrl.set(uri("https://oss.sonatype.org/content/repositories/snapshots/"))
username.set(System.getenv("OSSRH_USERNAME"))
password.set(System.getenv("OSSRH_TOKEN"))

}
}
}

0 comments on commit ca92ba5

Please sign in to comment.