-
-
Notifications
You must be signed in to change notification settings - Fork 2
81 lines (78 loc) · 2.62 KB
/
release_builds.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Available Runners: https://github.com/actions/runner-images?tab=readme-ov-file#available-images
name: Release App
on:
workflow_dispatch:
inputs:
platform:
description: "Platform"
required: true
type: choice
options:
- all
- linux
- windows
- macos
jobs:
# Runs on Linux x64
linux:
if: ${{ github.event.inputs.platform == 'linux' || github.event.inputs.platform == 'all' }}
runs-on: ubuntu-22.04
steps:
- name: Git Checkout
uses: actions/checkout@v4
- name: Apply Flutter Environment
uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Update dependencies
run: sudo apt-get update -y
- name: Install dependencies
run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
- name: Enable Linux
run: flutter config --enable-linux-desktop
- name: Activate Packaging Tool
run: dart pub global activate flutter_distributor
- name: Release App
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: flutter_distributor release --name publish --jobs linux
# Runs on Windows x64
windows:
if: ${{github.event.inputs.platform == 'windows' || github.event.inputs.platform == 'all'}}
runs-on: windows-latest
steps:
- name: Git Checkout
uses: actions/checkout@v4
- name: Apply Flutter Environment
uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Enable Windows
run: flutter config --enable-windows-desktop
- name: Activate Packaging Tool
run: dart pub global activate flutter_distributor
- name: Release App
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: flutter_distributor release --name publish --jobs windows
# Runs on Macos Arm64
macos:
if: ${{github.event.inputs.platform == 'macos' || github.event.inputs.platform == 'all'}}
runs-on: macos-latest
steps:
- name: Git Checkout
uses: actions/checkout@v4
- name: Install appdmg
run: npm install -g appdmg
- name: Apply Flutter Environment
uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Enable MacOS
run: flutter config --enable-macos-desktop
- name: Activate Packaging Tool
run: dart pub global activate flutter_distributor
- name: Release App
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: flutter_distributor release --name publish --jobs macos