diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index a74bf4d..88b20bf 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -53,8 +53,13 @@ jobs: - name: Make Gradlew executable run: chmod +x ./gradlew + # https://github.com/nick-fields/retry - name: Build project - run: ./gradlew shadowJar --no-daemon + uses: nick-fields/retry@v4.0.0 + with: + max_attempts: 2 + timeout_minutes: 1 + command: ./gradlew shadowJar --no-daemon # https://github.com/actions/upload-artifact - name: Upload build artifact