Skip to content

Windows build and release #1

Windows build and release

Windows build and release #1

Workflow file for this run

on:
push:
tags:
- "*"
name: Release Builds
jobs:
windows:
name: Windows
runs-on: windows-latest
steps:
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.24.5"
cache: true
channel: "stable"
- uses: actions/checkout@v4
with:
path: "app"
- name: Flutter enable windows
run: flutter config --enable-windows-desktop
- name: Install pub dependencies
run: cd app && flutter pub get
- name: Build windows release & compress it
run: |
cd app
flutter build windows --release
cd build\windows\x64\runner
Compress-Archive -Path Release -DestinationPath windows-release.zip
- name: Windows release build for github
uses: ncipollo/release-action@v1
with:
artifacts: 'app\build\windows\x64\runner\windows-release.zip'
token: ${{ secrets.TOKEN }}
allowUpdates: true