diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7f6a0d3..d1d5f56 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - dev pull_request: jobs: @@ -30,6 +31,13 @@ jobs: ${{ runner.os }}-gradle- - run: flutter pub get - run: flutter build apk --release --no-pub + - name: Upload APK + uses: actions/upload-artifact@v4 + with: + name: offband-android-r${{ github.run_number }}-${{ github.sha }} + path: build/app/outputs/flutter-apk/app-release.apk + if-no-files-found: error + retention-days: 14 ios: runs-on: macos-latest @@ -54,6 +62,13 @@ jobs: run: sudo apt-get update && sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev - run: flutter pub get - run: flutter build linux --release --no-pub + - name: Upload Linux bundle + uses: actions/upload-artifact@v4 + with: + name: offband-linux-r${{ github.run_number }}-${{ github.sha }} + path: build/linux/x64/release/bundle/ + if-no-files-found: error + retention-days: 14 macos: runs-on: macos-latest @@ -76,6 +91,13 @@ jobs: cache: true - run: flutter pub get - run: flutter build web --release --no-pub + - name: Upload web build + uses: actions/upload-artifact@v4 + with: + name: offband-web-r${{ github.run_number }}-${{ github.sha }} + path: build/web/ + if-no-files-found: error + retention-days: 14 windows: runs-on: windows-latest @@ -87,3 +109,10 @@ jobs: cache: true - run: flutter pub get - run: flutter build windows --release --no-pub + - name: Upload Windows build + uses: actions/upload-artifact@v4 + with: + name: offband-windows-r${{ github.run_number }}-${{ github.sha }} + path: build/windows/x64/runner/Release/ + if-no-files-found: error + retention-days: 14 diff --git a/.github/workflows/flutter_dart.yml b/.github/workflows/flutter_dart.yml index 117eb4f..e267557 100644 --- a/.github/workflows/flutter_dart.yml +++ b/.github/workflows/flutter_dart.yml @@ -5,6 +5,7 @@ on: push: branches: - main + - dev jobs: analyze: