-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 952 Bytes
/
Copy pathdart.yml
File metadata and controls
49 lines (43 loc) · 952 Bytes
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
name: Android Release
# 1
on:
# 2
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# 3
workflow_dispatch:
# 4
jobs:
# 5
build:
# 6
runs-on: ubuntu-latest
# 7
steps:
# 8
- uses: actions/checkout@v3
# 9
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: "17.0.8"
# 10
- uses: subosito/flutter-action@v2
with:
# 11
flutter-version: "3.13.7"
channel: 'stable'
# 12
- name: Get dependencies
run: flutter pub get
# Runs a set of commands using the runners shell
- name: Start release build
run: flutter build apk --no-tree-shake-icons
- name: Push to Releases
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/release/*"
tag: v0.0.1
token: ${{ secrets.TOKEN }}