From 40679766898bdb21aa4a3d6706eae3561e9cd716 Mon Sep 17 00:00:00 2001 From: Damien Albisson Date: Mon, 27 May 2024 11:51:06 +0200 Subject: [PATCH] Add windows app build + upload --- .github/workflows/build_binaries.yml | 38 +++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_binaries.yml b/.github/workflows/build_binaries.yml index 03c1ea2..9c0bfb4 100644 --- a/.github/workflows/build_binaries.yml +++ b/.github/workflows/build_binaries.yml @@ -18,7 +18,7 @@ name: Build Binaries on: push: - branches: [ "main" ] + branches: [ "main", "40-add-windows-build-to-workflow" ] tags: - '*' @@ -50,7 +50,7 @@ jobs: - run: flutter clean - run: flutter pub get - run: flutter pub run flutter_launcher_icons - + # If build from tag will use the tag name like build name with these 2 steps - name: build apk with tag @@ -92,4 +92,36 @@ jobs: uses: actions/upload-artifact@v4 with: name: apk - path: build/app/outputs/flutter-apk/${{env.today}}.apk \ No newline at end of file + path: build/app/outputs/flutter-apk/${{env.today}}.apk + + # build and upload windows app with default name + + build_windows_app: + + runs-on: windows-latest + + steps: + + # Get flutter and setup + + - name: Clone repository + uses: actions/checkout@v4 + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: 3.19.0 + + - run: flutter clean + - run: flutter pub get + - run: flutter pub run flutter_launcher_icons + + # Build windows app + upload + + - name: build windows app + run: flutter build windows + + - name: Upload windows app + uses: actions/upload-artifact@v4 + with: + name: windows_app + path: build\windows\x64\runner\Release \ No newline at end of file