Skip to content

fix: use Flutter 3.41.4 in CI to match local dev environment #4

fix: use Flutter 3.41.4 in CI to match local dev environment

fix: use Flutter 3.41.4 in CI to match local dev environment #4

Workflow file for this run

name: Build & Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.41.4'
channel: 'stable'
- name: Install dependencies
run: flutter pub get
- name: Build Windows
run: flutter build windows --release
- name: Package zip
shell: pwsh
run: |
Compress-Archive -Path "build\windows\x64\runner\Release\*" -DestinationPath "cicada-windows-x64.zip"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: cicada-windows-x64
path: cicada-windows-x64.zip
release:
needs: build-windows
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: cicada-windows-x64
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: cicada-windows-x64.zip
generate_release_notes: true
draft: false
prerelease: false