Skip to content

Commit

Permalink
update: build
Browse files Browse the repository at this point in the history
  • Loading branch information
gopi2401 committed Oct 6, 2024
1 parent e6cb998 commit bac1df0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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

Expand All @@ -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

0 comments on commit bac1df0

Please sign in to comment.