-
Notifications
You must be signed in to change notification settings - Fork 0
105 lines (103 loc) · 2.94 KB
/
main.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
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
on:
# release:
# types: [published]
# tags:
# - v*
push:
tags:
- v*
name: Release
jobs:
# iosRelease:
# runs-on: macos-latest
# steps:
# - name: Clone repository
# uses: actions/checkout@v4
# - name: Set up Flutter
# uses: subosito/flutter-action@v2
# with:
# channel: stable
# - run: flutter pub get
# - run: flutter test
# - run: flutter build ios --release --no-codesign
androidRelease:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.19.6
- run: flutter pub get
- run: flutter build apk --release
- run: flutter build appbundle
- name: Release apk
uses: softprops/action-gh-release@v2
with:
# token: ${{ secrets.ACTION_RELEASE_TOKEN }}
files: |
build/app/outputs/apk/release/*.apk
LICENSE
# webRelease:
# runs-on: ubuntu-latest
# steps:
# - name: Clone repository
# uses: actions/checkout@v4
# - name: Set up Flutter
# uses: subosito/flutter-action@v2
# with:
# channel: stable
# - run: flutter pub get
# - run: flutter build web --release
# - name: zip build
# uses: montudor/action-zip@v1
# with:
# args: zip -qq -r "web_*.zip" "build/web"
# - name: Release web
# uses: ncipollo/release-action@v1.5.0
# with:
# artifacts: "web_*.zip"
# token: ${{ secrets.ACTION_RELEASE_TOKEN }}
# windowsRelease:
# runs-on: windows-latest
# steps:
# - name: Clone repository
# uses: actions/checkout@v4
# - name: Set up Flutter
# uses: subosito/flutter-action@v2
# with:
# channel: stable
# - run: flutter build windows --release
# - name: zip build
# uses: montudor/action-zip@v1
# with:
# args: zip -qq -r "windows_*.zip" "build\windows\x64\runner\Release"
# - name: Release windows
# uses: ncipollo/release-action@v1.5.0
# with:
# artifacts: "windows_*.zip"
# token: ${{ secrets.ACTION_RELEASE_TOKEN }}
# linuxRelease:
# runs-on: ubuntu-latest
# steps:
# - name: Clone repository
# uses: actions/checkout@v4
# - name: Set up Flutter
# uses: subosito/flutter-action@v2
# with:
# channel: stable
# - run: |
# sudo apt-get update -y
# sudo apt-get install -y ninja-build libgtk-3-dev
# - run: flutter build linux
# macRelease:
# runs-on: macos-latest
# steps:
# - name: Clone repository
# uses: actions/checkout@v4
# - name: Set up Flutter
# uses: subosito/flutter-action@v2
# with:
# channel: stable
# - run: flutter build macos