-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 983 Bytes
/
release.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
name: CD
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
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:
channel: "stable"
cache: true
- name: create signing files
run: |
echo "${{ secrets.KEYSTORE_JKS }}" | base64 --decode > android/app/keystore.jks
echo "${{ secrets.KEY_PROPERTIES }}" | base64 --decode > android/key.properties
- run: flutter pub get
- run: dart run build_runner build --delete-conflicting-outputs
- run: flutter build apk --split-per-abi
- name: Create Release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: build/app/outputs/flutter-apk/*.apk