Skip to content

Commit 0e38317

Browse files
ryjoneselribonazo
andauthored
fix: Update to node20 actions (#184)
Signed-off-by: Ry Jones <[email protected]> Co-authored-by: Javier Ribó <[email protected]>
1 parent 2e75aa3 commit 0e38317

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

.github/workflows/pull-request.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ jobs:
3131
fail-fast: false
3232
runs-on: ${{ matrix.os }}
3333
steps:
34+
- name: Check Nexus access
35+
env:
36+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
37+
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
38+
run: |
39+
curl -u $OSSRH_USERNAME:$OSSRH_TOKEN https://oss.sonatype.org/service/local/repositories/releases/content/
40+
3441
- name: "Validate Gradle Wrapper"
3542
run: pwd
3643

.github/workflows/release-documentation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
fetch-depth: 0
3030

3131
- name: "Validate Gradle Wrapper"
32-
uses: gradle/wrapper-validation-action@v1
32+
uses: gradle/wrapper-validation-action@v3
3333

3434
- name: "Cache gradle"
35-
uses: actions/cache@v3
35+
uses: actions/cache@v4
3636
with:
3737
path: |
3838
~/.gradle/caches
@@ -43,7 +43,7 @@ jobs:
4343
${{ runner.os }}-gradle-
4444
4545
- name: "Install Java ${{ env.JAVA_VERSION }}"
46-
uses: actions/setup-java@v3
46+
uses: actions/setup-java@v4
4747
with:
4848
java-version: ${{ env.JAVA_VERSION }}
4949
distribution: "zulu"

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
with:
103103
xcode-version: '15.0.1'
104104

105-
- uses: crazy-max/ghaction-import-gpg@v5
105+
- uses: crazy-max/ghaction-import-gpg@v6
106106
id: import_gpg
107107
with:
108108
gpg_private_key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}

build.gradle.kts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ buildscript {
1515
gradlePluginPortal()
1616
google()
1717
mavenCentral()
18+
maven {
19+
name = "OSSRH"
20+
url = uri("https://oss.sonatype.org/service/local/repositories/releases/content/")
21+
credentials {
22+
username = project.findProperty("sonatypeUsername") as String? ?: System.getenv("OSSRH_USERNAME")
23+
password = project.findProperty("sonatypePassword") as String? ?: System.getenv("OSSRH_TOKEN")
24+
}
25+
}
1826
}
1927
dependencies {
2028
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23")
@@ -177,6 +185,3 @@ nexusPublishing {
177185
}
178186
}
179187
}
180-
181-
182-

0 commit comments

Comments
 (0)