Windows build and release #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |