Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

Commit

Permalink
40 add windows build to workflow (#41)
Browse files Browse the repository at this point in the history
* Add windows app build + upload

* remove create workflow on push on this branch test

---------

Co-authored-by: Damien Albisson <[email protected]>
  • Loading branch information
Darcraytore1 and Damien Albisson authored May 27, 2024
1 parent 5f8b81e commit 1e56f61
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/build_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -92,4 +92,36 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: apk
path: build/app/outputs/flutter-apk/${{env.today}}.apk
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

0 comments on commit 1e56f61

Please sign in to comment.