-
-
Notifications
You must be signed in to change notification settings - Fork 450
38 lines (32 loc) · 1.03 KB
/
testing_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
name: Publish App to Play Store
# Trigger the workflow on a schedule (every Monday at 12:00 UTC)
on:
schedule:
- cron: '0 12 * * 1' # Runs every Monday at 12:00
push:
tags:
- 'internal_testing' # internal_testing Tag
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Retrieve secrets to files
env:
KEYSTORE: ${{ secrets.keystore }}
PLAYSTORE_JSON: ${{ secrets.PLAYSTORE_JSON }}
run: |
echo "$KEYSTORE" | base64 -d > kiwix-android.keystore
echo "$PLAYSTORE_JSON" > playstore.json
- name: Publish bundle in internal testing on Google Play
env:
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
run: |
./gradlew publishPlayStoreBundle --scan