-
-
Notifications
You must be signed in to change notification settings - Fork 26
55 lines (53 loc) · 1.99 KB
/
android-build.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
name: android-build
on:
push:
tags:
- '*'
jobs:
android-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'zulu'
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.3'
bundler-cache: true
- name: Build release APKs
run: bash .github/scripts/fastlane.sh
env:
KEYSTORE: ${{ secrets.KEYSTORE }}
KEYSTORE_PASSPHRASE: ${{ secrets.KEYSTORE_PASSPHRASE }}
KEYSTORE_PROPERTIES: ${{ secrets.KEYSTORE_PROPERTIES }}
KEYSTORE_PROPERTIES_PASSPHRASE: ${{ secrets.KEYSTORE_PROPERTIES_PASSPHRASE }}
SECRETS_PROPERTIES: ${{ secrets.SECRETS_PROPERTIES }}
SECRETS_PROPERTIES_PASSPHRASE: ${{ secrets.SECRETS_PROPERTIES_PASSPHRASE }}
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
GOOGLE_SERVICES_PASSPHRASE: ${{ secrets.GOOGLE_SERVICES_PASSPHRASE }}
PLAYSTORE_SERVICE_ACCOUNT: ${{ secrets.PLAYSTORE_SERVICE_ACCOUNT }}
PLAYSTORE_SERVICE_ACCOUNT_PASSPHRASE: ${{ secrets.PLAYSTORE_SERVICE_ACCOUNT_PASSPHRASE }}
- name: Publish PlayStore APK
uses: actions/upload-artifact@v4
with:
name: app-release
path: app/build/outputs/apk/app/release
- name: Publish Github APK
uses: actions/upload-artifact@v4
with:
name: app-github-release
path: app/build/outputs/apk/github/release
- name: Upload APKs to GitHub Release
run: |
files=$(find app/build/outputs/apk/ -type f -name '*.apk')
gh release upload "${{ github.ref_name }}" $files
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@v5
if: always() # always run even if the previous step fails
with:
report_paths: '**/build/test-results/**/TEST-*.xml'