-
-
Notifications
You must be signed in to change notification settings - Fork 14
71 lines (61 loc) · 2.13 KB
/
release.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
67
68
69
70
71
name: Internal Release
on:
push:
branches:
- main
jobs:
submit-release:
runs-on: macos-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.CIS_MIDIS_TOKEN }}
- name: checkout submodules
run: |
git submodule init
git submodule update
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
- name: Decode Firebase google-services.json
env:
FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }}
run: |
echo $FIREBASE_CONFIG > app/google-services.json
echo $FIREBASE_CONFIG > app-v2/google-services.json
- name: Decode Playstore key
id: play_store_key
uses: akiojin/[email protected]
with:
base64: ${{ secrets.PLAY_KEY_BASE_64 }}
output-path: secrets/play-account.json
- name: Generate build number
run: echo "BUILD_NUMBER=${{github.run_number}}" > app/build_number.properties
- name: Build Release
run: ./gradlew app:bundleRelease --stacktrace
- uses: r0adkll/sign-android-release@v1
name: Sign Release file
id: build_signed
with:
releaseDirectory: app/build/outputs/bundle/release
signingKeyBase64: ${{ secrets.KEYSTORE_FILE }}
alias: ${{ secrets.KEY_ALIAS }}
keyStorePassword: ${{ secrets.KEY_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
# override default build-tools version (29.0.3) -- optional
BUILD_TOOLS_VERSION: "34.0.0"
- name: Publish to Internal track
uses: r0adkll/[email protected]
with:
serviceAccountJson: secrets/play-account.json
packageName: com.tinashe.christInSong
track: internal
status: completed
whatsNewDirectory: distribution/whatsnew
releaseFiles: app/build/outputs/bundle/release/app-release.aab
mappingFile: app/build/outputs/mapping/release/mapping.txt