-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 872 Bytes
/
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
on:
pull_request:
branches:
- main
push:
branches:
- main
name: "Build & Release"
jobs:
build:
name: Build & Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: "12.x"
cache: 'gradle'
- uses: subosito/flutter-action@v2
with:
lutter-version: '3.7.12'
channel: 'stable'
cache: true
- run: flutter clean
- run: flutter pub get
- run: flutter build apk --debug --split-per-abi
- name: Push to Releases
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/debug/*"
tag: v1.0.${{ github.run_number }}-3
token: ${{ secrets.STOCK_APP_TOKEN }}
# GITHUB ACTIONS CI/CD CODE