From 04cf9e9a732e70c97a271e6e475abd2074acc18f Mon Sep 17 00:00:00 2001 From: ansehoon1999 Date: Sun, 3 Dec 2023 14:27:16 +0900 Subject: [PATCH] fix: fix workflow --- .github/workflows/main.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 576bc15..f35b500 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,8 +20,21 @@ jobs: distribution: 'zulu' cache: gradle - - name: Set up Android SDK - uses: android-actions/setup-android@v2 + - name: Bump APK version + uses: chkfung/android-version-actions@v1.2.1 + with: + gradlePath: app/build.gradle.kts + versionCode: ${{ github.run_number }} - - name: Build debug APK - run: ./gradlew assembleDebug \ No newline at end of file + - name: Cache Gradle + uses: actions/cache@v3 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + + - name: Set up Android SDK + uses: android-actions/setup-android@v2 \ No newline at end of file