-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (44 loc) · 1.56 KB
/
master.yml
File metadata and controls
56 lines (44 loc) · 1.56 KB
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: Android CI Production workflow
on:
push:
tags:
- 'v?[0-9]+.[0-9]+.[0-9]+'
branches:
- 'release/**' # Push events to branches matching refs/heads/release/10
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
cache-read-only: false
gradle-home-cache-cleanup: true
- name: Build and bundle release
run: ./gradlew assembleProdRelease bundleProdRelease --no-configuration-cache
- name: Upload bundle artifact
if: startsWith(github.ref, 'refs/tags')
uses: actions/upload-artifact@v4
with:
name: bundle
path: app/build/outputs/bundle/prodRelease/*.aab
if-no-files-found: error
- name: Retrieve the secret and decode it to a file
env:
RTM_FIREBASE_SERVICE_ACCOUNT: ${{ secrets.RTM_FIREBASE_SERVICE_ACCOUNT }}
run: |
echo $RTM_FIREBASE_SERVICE_ACCOUNT > racing-time-manager-a0f79d64e4ac.json
- name: Upload release build to Firebase distribution
run: ./gradlew appDistributionUploadProdRelease
#- name: Deploy App
# if: startsWith(github.ref, 'refs/tags')
# env:
# ANDROID_PUBLISHER_CREDENTIALS: ${{ secrets.ANDROID_PUBLISHER_CREDENTIALS }}
# run: ./gradlew app:publishProdReleaseBundle -PfirebasePerformanceInstrumentationEnabled=true