remove unused mock images from assets/mock #8
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Deploy | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| types: [closed] | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # 1. Remove Cached Flutter Installation | |
| - name: Remove Cached Flutter Installation | |
| run: rm -rf $HOME/.flutter | |
| - name: Clean up old build files | |
| run: | | |
| rm -rf build/app/outputs/bundle/release/* | |
| # 2. Checkout repository | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| # 3. Install Flutter SDK | |
| - name: Install Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: 3.35.2 | |
| # 4. Verify Flutter and Dart Versions | |
| - name: Verify Flutter Installation | |
| run: | | |
| flutter --version | |
| dart --version | |
| # 6. Install Flutter dependencies | |
| - name: Install Flutter Dependencies | |
| run: flutter pub get | |
| # 7. Build Android APK | |
| - name: Build Android App Bundle | |
| run: flutter build apk --release --split-per-abi | |
| # 8. Upload build artifacts | |
| - name: Upload APK as an artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: app-release-apks | |
| path: build/app/outputs/apk/release/*.apk | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| permissions: | |
| contents: write | |
| steps: | |
| # 1. Checkout repository | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| # 2. Download build artifacts | |
| - name: Download APK | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: app-release-apks | |
| path: build/app/outputs/bundle/release/ | |
| # 3. Upload to Github Release | |
| - name: Github Release | |
| uses: ncipollo/release-action@v1.14.0 | |
| with: | |
| allowUpdates: true | |
| artifacts: build/app/outputs/bundle/release/*.apk | |
| artifactContentType: apk | |
| generateReleaseNotes: true | |
| tag: latest_build |