diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a0cf741..382c82f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,24 +8,27 @@ jobs: build: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v4 + - name: "Checkout" + uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-java@v4 + - name: "Set up Java" + uses: actions/setup-java@v4 with: distribution: "temurin" java-version: 17 - - name: Gradle Build and Test - uses: gradle/gradle-build-action@v2 - with: - arguments: check build publish publishPlugins --stacktrace + - name: "Set up Gradle" + uses: gradle/actions/setup-gradle@v3 + - name: "Gradle Build and Test" + run: ./gradlew check build publish publishPlugins --stacktrace env: GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }} GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }} ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNING_PGP_KEY_ID }} ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_PGP_KEY }} ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PGP_PASSWORD }} - - uses: actions/upload-artifact@v4 + - name: "Upload artifacts" + uses: actions/upload-artifact@v4 with: name: Artifacts path: ./build/libs/ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 166ee49..eb593fc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,18 +8,21 @@ jobs: java: [17, 21] runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v4 + - name: "Checkout" + uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-java@v4 + - name: "Set up Java" + uses: actions/setup-java@v4 with: distribution: "temurin" java-version: ${{ matrix.java }} - - name: Gradle Build and Test - uses: gradle/gradle-build-action@v2 - with: - arguments: build check --stacktrace --parallel - - uses: actions/upload-artifact@v4 + - name: "Set up Gradle" + uses: gradle/actions/setup-gradle@v3 + - name: "Gradle Build and Test" + run: ./gradlew build check --stacktrace --parallel + - name: "Upload artifacts" + uses: actions/upload-artifact@v4 if: matrix.java == 17 with: name: Artifacts