-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (51 loc) · 1.82 KB
/
gradle-bundleRelease.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
53
name: 'Build Release Artifacts'
on: workflow_dispatch
jobs:
build:
name: 'Build the project and create .aab file for Play Store'
runs-on: ubuntu-latest
outputs:
tag-name: ${{ steps.tag.outputs.tag }}
steps:
- name: 'Checkout Code'
uses: actions/checkout@v3
- name: 'Set up Java'
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
cache: 'gradle'
- name: 'update google services json'
env:
SERVICE_JSON: ${{ secrets.GOOGLE_CRASHLITYCS }}
run: |
echo $SERVICE_JSON > testomania/google-services.json
- name: 'Create keystore file'
env:
FILE: ${{ secrets.KEYSTORE_FILE }}
run: |
echo $FILE | base64 --decode > keystore.jks
- name: 'Build native executables'
uses: gradle/gradle-build-action@v2
with:
arguments: bundleRelease assembleRelease
env:
KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
KEYSTORE_PRIVATE_KEY: ${{ secrets.KEYSTORE_PRIVATE_KEY }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
- name: 'Upload artifacts'
uses: actions/upload-artifact@v3
with:
name: artifacts
path: |
./testomania/build/outputs/bundle/release/*
./testomania/build/outputs/apk/release/*
- name: Upload Android Release to Play Store
uses: r0adkll/[email protected]
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_API_ACCESS }}
packageName: com.earth.testomania
releaseFiles: testomania/build/outputs/bundle/release/testomania-release.aab
track: alpha
status: completed
mappingFile: testomania/build/outputs/mapping/release/mapping.txt