-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.23 KB
/
linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
- name: Install Dependencies
run: flutter pub get
- name: Build Release App
run: flutter build linux --release
- name: Create Release
uses: actions/create-release@v1
with:
tag_name: ${{ runner.os }}-release-${{ github.run_number }}
body: Release built on ${{ runner.os }}
- name: Upload Release Artifact
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/linux/release/bundle
asset_name: ${{ runner.os }}-release-${{ github.run_number }}.zip
asset_content_type: application/zip