-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.17 KB
/
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
37
name: build
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
PROPERTIES_PATH: "./android/key.properties"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '2.8.0'
channel: 'stable'
cache: true
cache-key: flutter # optional, change this to force refresh cache
cache-path: ${{ runner.tool_cache }}/flutter # optional, change this to specify the cache path
- run: |
echo keyPassword=\${{ secrets.KEY_STORE }} > ${{env.PROPERTIES_PATH}}
echo storePassword=\${{ secrets.KEY_PASSWORD }} >> ${{env.PROPERTIES_PATH}}
echo keyAlias=\${{ secrets.KEY_ALIAS }} >> ${{env.PROPERTIES_PATH}}
echo "${{ secrets.KEYSTORE2 }}" | base64 --decode > android/app/upload-keystore.jks
- name: Getting Packages
run: flutter pub get
- name: Build APK
run: flutter build apk
- name: Upload Release Apk
uses: actions/upload-artifact@v3.1.0
with:
name: release-apk
path: build/app/outputs/apk/release/app-release.apk