-
Notifications
You must be signed in to change notification settings - Fork 1
116 lines (110 loc) · 3.83 KB
/
Copy pathrelease.yml
File metadata and controls
116 lines (110 loc) · 3.83 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
on:
release:
types:
- created
name: release flutter-todoapp
jobs:
linux:
runs-on: ubuntu-latest
steps:
- run: sudo apt-get install -y ninja-build libgtk-3-dev
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
- run: flutter pub get
- run: dart run tlfs:download_tlfs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: dart run tlfs:compile_schema todoapp
- run: flutter config --enable-linux-desktop
- run: flutter build linux
- run: linux/appimage/build.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: gh release upload $TAG todoapp-x86_64.AppImage
working-directory: build/appimage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}
android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/flutter-action@v1
- run: flutter pub get
- run: dart run tlfs:download_tlfs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: dart run tlfs:compile_schema todoapp
- run: flutter build apk
- run: mv app-release.apk todoapp-aarch64.apk
working-directory: build/app/outputs/apk/release
- run: gh release upload $TAG todoapp-aarch64.apk
working-directory: build/app/outputs/apk/release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
- run: flutter pub get
- run: dart run tlfs:download_tlfs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: dart run tlfs:compile_schema todoapp
- run: flutter config --enable-macos-desktop
- run: flutter build macos
- run: hdiutil create todoapp-uncompressed-x86_64.dmg -ov -volname todoapp -fs HFS+ -srcfolder todoapp.app
working-directory: build/macos/Build/Products/Release
- run: hdiutil convert todoapp-uncompressed-x86_64.dmg -format UDZO -o todoapp-x86_64.dmg
working-directory: build/macos/Build/Products/Release
- run: gh release upload $TAG todoapp-x86_64.dmg
working-directory: build/macos/Build/Products/Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}
ios:
if: ${{ false }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
- run: flutter pub get
- run: dart run tlfs:download_tlfs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: dart run tlfs:compile_schema todoapp
- run: flutter build ipa
- run: gtar --zstd -cf todoapp-aarch64.tar.zst Runner.xarchive
working-directory: build/ios/archive
- run: gh release upload $TAG todoapp-aarch64.tar.zst
working-directory: build/ios/archive
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
- run: flutter pub get
- run: dart run tlfs:download_tlfs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: dart run tlfs:compile_schema todoapp
- run: flutter config --enable-windows-desktop
- run: flutter build windows
- run: flutter pub run msix:create
- run: mv flutter_todoapp.msix todoapp-x86_64.msix
working-directory: build/windows/runner/Release
- run: gh release upload $TAG todoapp-x86_64.msix
shell: bash
working-directory: build/windows/runner/Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}