-
-
Notifications
You must be signed in to change notification settings - Fork 20
40 lines (40 loc) · 1.21 KB
/
main.yml
File metadata and controls
40 lines (40 loc) · 1.21 KB
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
name: Call Manager CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build APK
runs-on: ubuntu-latest
steps:
- name: base64-to-file
id: write_file
uses: timheuer/base64-to-file@v1
with:
fileName: 'call_manager_key.jks'
encodedString: ${{ secrets.SIGNING_KEY }}
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
- uses: subosito/flutter-action@v1
with:
flutter-version: '2.0.3'
fileLocation: ${{ steps.write_file.outputs.filePath }}
- run: flutter pub get
- run: flutter analyze
# - run: flutter build apk --split-per-abi
# env:
# KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
# KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
# ALIAS: ${{ secrets.ALIAS }}
# KEY_PATH: ${{ steps.write_file.outputs.filePath }}
# - name: Create a Release APK
# uses: ncipollo/release-action@v1
# with:
# artifacts: "build/app/outputs/flutter-apk/*.apk"
# token: ${{ secrets.TOKEN }}