From 5a6446637e221cad9af64b6e39a619ad4afda366 Mon Sep 17 00:00:00 2001 From: Julian Vennen Date: Mon, 23 Sep 2024 12:01:25 +0200 Subject: [PATCH] Update workflow dependencies --- .github/workflows/build.yml | 8 ++++---- .github/workflows/release.yml | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4491887..5bdbffc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,14 +7,14 @@ jobs: matrix: java: [11, 17, 19] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: temurin java-version: ${{ matrix.java }} cache: 'gradle' - - name: Grant execute permission for gradlew - run: chmod +x gradlew + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 - name: Build with Gradle run: ./gradlew build --no-daemon \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d5b8365..5494f40 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,15 +7,15 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK 1.8 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: temurin java-version: 11 cache: 'gradle' - - name: Grant execute permission for gradlew - run: chmod +x gradlew + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 - name: Build with Gradle run: ./gradlew build --no-daemon -Prelease=${{ github.ref_name }} - name: Publish to Maven Central @@ -26,7 +26,7 @@ jobs: ORG_GRADLE_PROJECT_OSSRH_PASSWORD: ${{ secrets.SONATYPE_OSSRH_PASSWORD }} run: ./gradlew publish --no-daemon -Prelease=${{ github.ref_name }} - name: Create Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: files: | ./build/libs/mclogs-*.jar