-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (39 loc) · 1.46 KB
/
android-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
name: CI
on:
workflow_dispatch:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Replace licensed resources (font)
run: >
rm tree-app-android/app/src/main/res/font/fredoka_one_regular.ttf &&
gpg --quiet --batch --yes --passphrase="${{ secrets.SECRET_ASSETS }}"
--output tree-app-android/app/src/main/res/font/fredoka_one_regular.otf --decrypt docs/assets/freude.otf.gpg
- name: Build App
run: sh gradlew build
working-directory: tree-app-android
- name: Assemble Release Bundle
run: |
sh gradlew bundleRelease
working-directory: tree-app-android
- name: Sign Release
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: tree-app-android/app/build/outputs/bundle/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
- name: Upload Android Release to Play Store
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON_PLAIN }}
packageName: de.lmu.treeapp
releaseFiles: tree-app-android/app/build/outputs/bundle/release/app-release.aab
track: internal
whatsNewDirectory: docs/playstore/whatsnew/