From 4bad04c59510abe70736742fdcbbcff28db99e12 Mon Sep 17 00:00:00 2001 From: Dan Berkowitz Date: Sat, 22 Jun 2024 02:23:25 -0400 Subject: [PATCH] Update github actions --- .github/workflows/publish.yml | 12 ++++++------ .github/workflows/test.yml | 16 +++++++--------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e18719e..83fd973 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,19 +8,19 @@ jobs: steps: - name: Checkout latest code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: adopt java-version: 11 - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b - - name: Publish package - uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 - with: - arguments: publish + - name: Setup Gradle + uses: gradle/gradle-build-action@v3 + - name: Publish with Gradle + run: ./gradlew publish env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b10dfdb..1d8df05 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,28 +8,26 @@ jobs: runs-on: ${{ matrix.os }} # runs-on: windows-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: adopt java-version: 11 - name: Setup Gradle - uses: gradle/gradle-build-action@v2 - - name: Setup and execute Gradle 'test' task - uses: gradle/gradle-build-action@v2 - with: - arguments: clean build test --scan + uses: gradle/gradle-build-action@v3 + - name: Publish with Gradle + run: ./gradlew clean build test --scan env: GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} GPG_SIGNING_PASSPHRASE: ${{ secrets.GPG_SIGNING_PASSPHRASE }} - name: Upload build reports - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() # always run even if the previous step fails with: name: build-reports path: build/reports/ - name: Upload Test XML Files - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() # always run even if the previous step fails with: name: test-xmls