From 0e38317f22c239df10a87797895303f1f18019b1 Mon Sep 17 00:00:00 2001 From: Ry Jones Date: Fri, 12 Jul 2024 20:03:23 +0900 Subject: [PATCH] fix: Update to node20 actions (#184) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ry Jones Co-authored-by: Javier RiboĢ --- .github/workflows/pull-request.yml | 7 +++++++ .github/workflows/release-documentation.yml | 6 +++--- .github/workflows/release.yml | 2 +- build.gradle.kts | 11 ++++++++--- 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 4c411d3d7..6b69c76b0 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -31,6 +31,13 @@ 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 diff --git a/.github/workflows/release-documentation.yml b/.github/workflows/release-documentation.yml index 02c127e1e..7a56e8950 100644 --- a/.github/workflows/release-documentation.yml +++ b/.github/workflows/release-documentation.yml @@ -29,10 +29,10 @@ jobs: fetch-depth: 0 - name: "Validate Gradle Wrapper" - uses: gradle/wrapper-validation-action@v1 + uses: gradle/wrapper-validation-action@v3 - name: "Cache gradle" - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.gradle/caches @@ -43,7 +43,7 @@ jobs: ${{ runner.os }}-gradle- - name: "Install Java ${{ env.JAVA_VERSION }}" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: ${{ env.JAVA_VERSION }} distribution: "zulu" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3c297be30..a82e8ed4c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -102,7 +102,7 @@ jobs: with: xcode-version: '15.0.1' - - uses: crazy-max/ghaction-import-gpg@v5 + - uses: crazy-max/ghaction-import-gpg@v6 id: import_gpg with: gpg_private_key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} diff --git a/build.gradle.kts b/build.gradle.kts index 81a9dbee8..256ce737f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -15,6 +15,14 @@ buildscript { gradlePluginPortal() google() mavenCentral() + maven { + name = "OSSRH" + url = uri("https://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") @@ -177,6 +185,3 @@ nexusPublishing { } } } - - -