diff --git a/.github/workflows/android-master.yml b/.github/workflows/android-master.yml index 7f333f1..27be875 100644 --- a/.github/workflows/android-master.yml +++ b/.github/workflows/android-master.yml @@ -13,38 +13,33 @@ concurrency: cancel-in-progress: true jobs: - check_wrapper: - name: Validate Gradle Wrapper - runs-on: ubuntu-latest - - steps: - - name: Clone repo - uses: actions/checkout@v2 - - - name: Validate Gradle Wrapper - uses: gradle/wrapper-validation-action@v1 - build: name: Build project - needs: check_wrapper runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 + + - name: Validate Gradle Wrapper + uses: gradle/wrapper-validation-action@v2 - name: Copy CI gradle.properties run: | mkdir -p ~/.gradle cp .github/ci-gradle.properties ~/.gradle/gradle.properties - - name: Set up JDK 11 - uses: actions/setup-java@v1 + - name: Set up JDK + uses: actions/setup-java@v2 with: - java-version: 11 + java-version: 17 + distribution: adopt + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 - name: Build APK - run: bash ./gradlew spotlessCheck assembleRelease --stacktrace + run: ./gradlew spotlessCheck assembleRelease --stacktrace - name: Sign APK if: github.repository == 'ivaniskandar/shouko' && github.event_name == 'push' diff --git a/gradlew b/gradlew old mode 100644 new mode 100755