4.4.2: Builds fix #24
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
name: Flutter CI | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-and-release-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
flutter-version: '3.24.x' | |
- name: Build artifacts | |
run: flutter build windows --release | |
- name: Archive Release | |
uses: thedoctor0/[email protected] | |
with: | |
type: 'zip' | |
filename: Sebastian-${{github.ref_name}}-windows.zip | |
directory: build/windows/x64/runner/Release | |
- name: Windows Release | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
files: build/windows/x64/runner/Release/Sebastian-${{github.ref_name}}-windows.zip | |
build-and-release-macos: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
flutter-version: '3.24.x' | |
- name: Build artifacts | |
run: flutter build macos --release | |
- name: Archive Release | |
working-directory: build/macos/Build/Products/Release | |
run: zip --symlinks -qr Sebastian-${{github.ref_name}}-macos.zip Sebastian.app | |
- name: macOS Release | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
files: build/macos/Build/Products/Release/Sebastian-${{github.ref_name}}-macos.zip |