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

Commit

Permalink
Add windows app build + upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Albisson authored and Damien Albisson committed May 27, 2024
1 parent 5f8b81e commit 4067976
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions .github/workflows/build_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ name: Build Binaries

on:
push:
branches: [ "main" ]
branches: [ "main", "40-add-windows-build-to-workflow" ]
tags:
- '*'

Expand Down 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 4067976

Please sign in to comment.