-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (59 loc) · 1.73 KB
/
android.yaml
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
57
58
59
60
61
62
name: XMUX Android Internal
on:
push:
branches:
- master
paths:
- .github/workflows/android.yaml
- lib/**
- android/**
- pubspec.yaml
- pubspec.lock
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: microsoft
java-version: "11"
java-package: jdk
- uses: subosito/flutter-action@v2
with:
channel: beta
- name: Build
run: |
echo $CONFIG_ENV | base64 -d > .env
echo $ANDROID_RELEASE_SIGN_KEY | base64 -d > ./android/app/x.jks
flutter build apk \
--release \
--target-platform=android-arm64 \
--dart-define-from-file=.env
env:
CONFIG_ENV: ${{ secrets.CONFIG_ENV }}
ANDROID_RELEASE_SIGN_KEY: ${{ secrets.ANDROID_RELEASE_SIGN_KEY }}
KEYSTORE_FILE: x.jks
KEYSTORE_PASSWORD: ${{ secrets.ANDROID_RELEASE_SIGN_KEYSTORE_PASSWORD }}
KEY_ALIAS: xmux
KEY_PASSWORD: ${{ secrets.ANDROID_RELEASE_SIGN_KEY_PASSWORD }}
- uses: actions/upload-artifact@v4
with:
name: XMUX-Android
path: build/app/outputs/flutter-apk/app-release.apk
DeployGooglePlay:
runs-on: ubuntu-latest
needs: Build
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: XMUX-Android
- uses: r0adkll/upload-google-play@v1.1.3
with:
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_KEY }}
packageName: org.ctbeta.xmux.xmux
releaseFiles: app-release.apk
track: internal