-
-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (34 loc) · 1.34 KB
/
publish.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
name: Publish Custom App
on:
release:
types: [published]
branches:
- main
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- name: Retrieving custom app configuration
uses: actions/checkout@v3
- name: Retrieving Kiwix Android source code
run: git clone --depth=1 --single-branch --branch dwds_publishing_issue https://github.com/kiwix/kiwix-android.git
- name: Copying custom app configuration into Kiwix Android code base
run: ./copy_files_to_kiwix_android.sh
- name: Preparing signing material
env:
keystore: ${{ secrets.keystore }}
playstore_json: ${{ secrets.PLAYSTORE_JSON }}
run: |
echo "$playstore_json" > kiwix-android/playstore.json
echo "$keystore" | base64 -d > kiwix-android/kiwix-android.keystore
- name: Set tag variable
run: echo "TAG=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
- name: Publishing app to Google Play
env:
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION: ${{ secrets.DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION }}
run: |
cd kiwix-android
eval "./gradlew publish${TAG^}ReleaseApkWithExpansionFile"