-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (42 loc) · 1.21 KB
/
main.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
name: Latest Stable Release
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
name: Stable version Release new apk
runs-on: ubuntu-latest
defaults:
run:
working-directory: jam_it
steps:
- name: Checkout Branch
uses: actions/checkout@v3
- name: Get Version Number
id: read-version
uses: NiklasLehnfeld/flutter-version-number-action@main
with:
file-path: jam_it/pubspec.yaml
- name: Setup Java SDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'
- name: Setup Flutter SDK
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Install Dependencies
run: flutter pub get
- name: Build apk for platfroms
run: flutter build apk --release --split-per-abi
- name: Push to Releases
uses: ncipollo/release-action@v1
with:
artifacts: "jam_it/build/app/outputs/apk/release/*"
tag: ${{ steps.read-version.outputs.version-number }}
token: ${{ secrets.TOKEN }}