-
Notifications
You must be signed in to change notification settings - Fork 5
66 lines (53 loc) · 1.85 KB
/
dev-deploy.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
57
58
59
60
61
62
63
64
65
66
name: Dev - Upload to Firebase Distribution
on:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: "17.x"
- name: Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Install dependencies
run: flutter pub get
- name: Provide Firebase Android
env:
FIREBASE_CONFIG_DEV: ${{ secrets.DEV_GOOGLE_SERVICES_JSON }}
run: echo $FIREBASE_CONFIG_DEV > ./android/app/google-services.json
- name: "Create env file"
run: |
touch .env
echo sentryDsn=${{ secrets.SENTRY_DSN }} >> .env
cat .env
# - name: Run tests
# run: flutter test
- name: Set Secret Key Properties
env:
KEY_PROPERTIES: ${{ secrets.KEY_PROPERTIES }}
run: echo "$KEY_PROPERTIES" > ./android/key.properties
- name: Prepare upload keystore
run: |
echo "${{ secrets.BASE_64_SIGNING_KEY }}" > upload-keystore.jks.asc
gpg -d --passphrase "${{ secrets.BASE_64_SIGNING_KEY_PASSPHRASE }}" --batch upload-keystore.jks.asc > ./android/upload-keystore.jks
- name: Create apks dir
run: |
mkdir apks
- name: Build android apk and appBundle
run: make build-dev
# - name: Build android ios
# run: flutter build ios --releasee --no-codesign
- name: Upload artifact to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{secrets.DEV_FIREBASE_APP_ID}}
serviceCredentialsFileContent: ${{secrets.DEV_CREDENTIAL_FILE_CONTENT}}
groups: dreader_internal
file: apks/dReader-dev.apk