Build and Release Flutter Linux App #9
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: Build and Release Flutter Linux App | |
on: | |
workflow_dispatch: # Trigger manually | |
jobs: | |
build-and-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v1 | |
with: | |
channel: stable | |
flutter-version-file: pubspec.yaml | |
- name: Flutter version used | |
run: flutter --version | |
- name: Install Linux deps | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y ninja-build libgtk-3-dev libwebkit2gtk-4.0-dev | |
- name: Install Dependencies | |
run: flutter pub get | |
- name: Build Release App | |
run: flutter build linux --release | |
- name: Upload Build Artifact (Linux) | |
uses: actions/upload-artifact@v2 | |
with: | |
name: linux-build-artifact | |
path: build/linux/x64/release/bundle/app |