-
-
Notifications
You must be signed in to change notification settings - Fork 24
51 lines (49 loc) · 1.51 KB
/
release_apk.yml
File metadata and controls
51 lines (49 loc) · 1.51 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
name: Release Android App
on:
workflow_dispatch:
# Inputs the workflow accepts.
inputs:
version-code:
description: 'The version code to promote to the open testing track'
required: true
type: string
workflow_call:
inputs:
version-code:
description: 'The version code to promote to the open testing track'
required: true
type: string
ref:
description: 'A ref for this workflow to check out its own repo'
required: true
type: string
secrets:
KOLIBRI_ANDROID_PLAY_STORE_API_SERVICE_ACCOUNT_JSON:
required: false
jobs:
release_apk:
runs-on: ubuntu-latest
env:
SERVICE_ACCOUNT_JSON: '${{ secrets.KOLIBRI_ANDROID_PLAY_STORE_API_SERVICE_ACCOUNT_JSON }}'
steps:
- uses: actions/checkout@v6
if: ${{ !inputs.ref }}
- uses: actions/checkout@v6
if: ${{ inputs.ref }}
with:
repository: learningequality/kolibri-installer-android
ref: ${{ inputs.ref }}
- name: Set up Python 3.9
uses: actions/setup-python@v6
with:
python-version: 3.9
- uses: actions/cache@v5
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: pip install -r requirements.txt
- name: Release APK
run: python scripts/play_store_api.py release "${{ inputs.version-code }}"