-
Notifications
You must be signed in to change notification settings - Fork 9
52 lines (43 loc) · 1.77 KB
/
upload-android.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
name: Upload Android
on:
push:
branches:
- 'prod'
paths:
- "version"
- ".github/workflows/upload-android.yml"
env:
RELEASE_KEY_STORE_BASE64: ${{ secrets.SIGNING_KEY_BASE64 }}
SERVICE_ACCOUNT_JSON: ${{ secrets.SERVICE_ACCOUNT_JSON }}
DEBUG_KEY_STORE_BASE64: ${{ secrets.DEBUG_SIGNING_KEY_BASE64 }}
EXPORT_PRESET_CFG: ${{ secrets.GODOT_EXPORTS_PRESET_CFG }}
WORKING_DIRECTORY: game
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Create service-account.json
run: echo $SERVICE_ACCOUNT_JSON > service-account.json
- name: Create release keystore
run: echo $RELEASE_KEY_STORE_BASE64 | base64 --decode > keystore.keystore
- name: Create debug keystore
run: echo $DEBUG_KEY_STORE_BASE64 | base64 --decode > debug.keystore
- name: Set version number and version code
run: |
echo "VERSION_NAME=$(cat version | cut -f1 -d-)" >> $GITHUB_ENV
echo "VERSION_CODE=$(cat version | cut -f2 -d-)" >> $GITHUB_ENV
- name: Create and config export_presets.cfg
run: |
echo $EXPORT_PRESET_CFG > $WORKING_DIRECTORY/export_presets.cfg
sed -i "s|KEYSTORE_PATH|$GITHUB_WORKSPACE/keystore.keystore|g" $WORKING_DIRECTORY/export_presets.cfg
sed -i "s|VERSION_CODE|$VERSION_CODE|g" $WORKING_DIRECTORY/export_presets.cfg
sed -i "s|VERSION_NAME|$VERSION_NAME|g" $WORKING_DIRECTORY/export_presets.cfg
- name: Export signed apk and upload to internal testing
uses: dulvui/godot-android-upload@v1
with:
working-directory: $WORKING_DIRECTORY
package-name: com.salvai.broomball
release-file: ./Broomball.apk
cache-version: 1