Skip to content

Commit

Permalink
fix: Update to node20 actions (#184)
Browse files Browse the repository at this point in the history
Signed-off-by: Ry Jones <[email protected]>
Co-authored-by: Javier Ribó <[email protected]>
  • Loading branch information
ryjones and elribonazo authored Jul 12, 2024
1 parent 2e75aa3 commit 0e38317
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
11 changes: 8 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -177,6 +185,3 @@ nexusPublishing {
}
}
}



0 comments on commit 0e38317

Please sign in to comment.