-
-
Notifications
You must be signed in to change notification settings - Fork 14
72 lines (60 loc) · 1.96 KB
/
nightly.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Android development CI
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
submodules: 'true'
- name: set up JDK 17
uses: actions/[email protected]
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Decode Keystore
env:
ENCODED_KEYSTORE: ${{ secrets.SIGNING_KEY }}
ENCODED_PROPS: ${{ secrets.KEYSTORE_PROPERTIES }}
run: |
if [ "$ENCODED_PROPS" == "" ]; then
exit
fi
echo $ENCODED_KEYSTORE | base64 -di > keystore.jks
echo $ENCODED_PROPS | base64 -di > keystore.properties
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Calculate version suffix
run:
echo "VERSION_SUFFIX=$(git show -s --abbrev=7 --format=-%cd-%h --date=format:%y%m%d)" >> $GITHUB_ENV
- name: Build with Gradle
run: ./gradlew assembleEmulatorRelease
- name: Prepare artifact
run: |
mkdir -p artifact/mapping
mv app/build/outputs/native-debug-symbols/**/* artifact
mv app/build/outputs/mapping/**/* artifact/mapping
(cd artifact && zip -r "$OLDPWD/symbols.zip" .)
- name: GitHub Release
uses: "marvinpinto/[email protected]"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "continuous"
title: "Development Build"
files: |
app/build/outputs/apk/**/*.apk
symbols.zip
- name: Upload Artifact (bin)
uses: actions/[email protected]
with:
name: "Binary"
path: app/build/outputs/apk/emulator/release/*.apk
- name: Upload a Build Artifact (sym)
uses: actions/[email protected]
with:
name: "Symbols"
path: artifact