-
Notifications
You must be signed in to change notification settings - Fork 115
48 lines (40 loc) · 1.38 KB
/
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
39
40
41
42
43
44
45
46
47
48
name: Release
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Release
uses: Raul6469/[email protected]
env:
keystorePassword: ${{secrets.keystorePassword}}
keyAlias: ${{secrets.KEYNAME}}
keyPassword: ${{secrets.KEY_ALIAS_PASSWORD}}
with:
# The gradle command you wish to run (required)
# Here, `./gradlew test` will be run
script: "assembleRelease"
# In some cases, you may need to provide
# Android licence agreement id
# You can find it on your own machine under `$ANDROID_HOME/license`,
# and add the file content as a GitHub secret named `$ANDROID_LICENCE`.
android-licence: ${{ secrets.ANDROID_LICENCE }}
- name: Copy Finished APK
run: |
cp ./enabler/build/outputs/apk/release/enabler-release.apk /tmp/enabler-release.apk
- name: Publish Artifact
uses: actions/upload-artifact@v2
with:
name: Open XC Enabler
path: /tmp/enabler-release.apk
- name: Publish To Play Store
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJson: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: com.openxcplatform.enabler
releaseFile: /tmp/enabler-release.apk
track: prodction