-
-
Notifications
You must be signed in to change notification settings - Fork 42
56 lines (46 loc) · 1.36 KB
/
prerelease_android.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: prerelease_android
on:
release:
types:
- prereleased
jobs:
deploy_android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
bundler-cache: true
- name: Bundle install
run: cd ./android && bundle install
- name: Setup JDK
uses: actions/setup-java@v1
with:
java-version: "11.x"
- name: Dump Secrets
run: |
echo "SENTRY_DSN='${{secrets.SENTRY_DSN}}'" > .env
cd android/
echo "${{secrets.KEYSTORE}}" > keystore.b64
base64 -d -i keystore.b64 > keystore.jks
echo "${{secrets.KEY_PROPERTIES}}" > key.properties
echo "${{secrets.GOOGLE_PLAY_JSON_CONTENT}}" > google_play.b64
base64 -d -i google_play.b64 > google_play.json
- name: Setup flutter
uses: subosito/flutter-action@v1
with:
channel: "stable"
- name: Install tools
run: |
flutter pub get
- name: Flutter build release
run: |
unset ANDROID_NDK_HOME
flutter build appbundle
- name: Deploy beta to Play Store
run: |
cd ./android && bundle exec fastlane beta
env:
PLAY_APP_IDENTIFIER: ${{ secrets.PLAY_APP_IDENTIFIER }}