From c7d718f03160c752b91e60404ede00e4cb75ee18 Mon Sep 17 00:00:00 2001 From: Apehum <36326454+Apehum@users.noreply.github.com> Date: Wed, 9 Oct 2024 03:18:43 +0800 Subject: [PATCH] ci: update plugins --- .github/workflows/dokka.yml | 19 ++++++++++--------- .github/workflows/publish.yml | 18 +++++++----------- 2 files changed, 17 insertions(+), 20 deletions(-) diff --git a/.github/workflows/dokka.yml b/.github/workflows/dokka.yml index e928a9f..9532156 100644 --- a/.github/workflows/dokka.yml +++ b/.github/workflows/dokka.yml @@ -11,11 +11,9 @@ jobs: runs-on: ubuntu-latest steps: - - name: Clone repository - uses: actions/checkout@v3 - + - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: temurin java-version: | @@ -24,13 +22,16 @@ jobs: 17 21 - - name: Build with Gradle - uses: gradle/gradle-build-action@v2 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 with: - arguments: dokkaHtmlMultiModule + cache-read-only: false + + - name: Build with Gradle + run: ./gradlew dokkaHtmlMultiModule - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: ./build/dokka/htmlMultiModule @@ -49,4 +50,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7fca9d0..16c7570 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,28 +11,24 @@ jobs: runs-on: ubuntu-latest steps: - - name: Clone repository - uses: actions/checkout@v3 - + - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: - distribution: zulu + distribution: temurin java-version: | 8 16 17 21 - - name: Print Java Toolchain - uses: gradle/gradle-build-action@v2 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 with: - arguments: javaToolchains + cache-read-only: false - name: Build with Gradle - uses: gradle/gradle-build-action@v2 + run: ./gradlew publish env: MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} - with: - arguments: publish