From bac1df0489f092203b1d51dbd4021d0b36e6dd68 Mon Sep 17 00:00:00 2001 From: gopi2401 Date: Sun, 6 Oct 2024 14:23:28 +0530 Subject: [PATCH] update: build --- .github/workflows/build.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3097241..ba213f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,6 @@ jobs: with: java-version: "17" distribution: "adopt" # You can keep 'temurin' if needed - cache: "gradle" # Gradle cache for faster builds - uses: actions/cache@v4 @@ -32,6 +31,11 @@ jobs: ${{ runner.os }}-gradle- ${{ runner.os }}- + - uses: actions/cache@v4 + with: + path: /usr/local/lib/android/sdk + key: ${{ runner.os }}-android-sdk-cache + # Setup Flutter environment - uses: subosito/flutter-action@v2 with: @@ -52,11 +56,6 @@ jobs: GITHUBTOKEN=${{ secrets.GITHUBTOKEN }} EOF - - uses: actions/cache@v4 - with: - path: /usr/local/lib/android/sdk - key: ${{ runner.os }}-android-sdk - # Build APK with additional flags for optimization - run: flutter build apk --release @@ -66,4 +65,4 @@ jobs: curl -s -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument" \ -F chat_id=${{ secrets.TELEGRAM_CHAT_ID }} \ -F document=@build/app/outputs/flutter-apk/app-release.apk \ - -F caption="app" || echo "Upload failed" + -F caption=app