-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.2 KB
/
android-build.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
name: Android stage build
on:
pull_request:
branches:
- "development"
- "main"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java SDK 17
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 17
- name: Print env
- shell: bash
env:
USER_NAME: $ {{ secrets.USER_NAME }}
run: |
echo -n "$USERNAME"
- name: Decode secret properties
env:
SECRET_PROPERTIES_BASE64: ${{ secrets.SECRET_PROPERTIES }}
run: |
echo -n "$SECRET_PROPERTIES_BASE64" | base64 --decode > ${{ github.workspace }}/app/src/main/secret.properties
echo -n "$SECRET_PROPERTIES_BASE64" | base64 --decode > ${{ github.workspace }}/data/src/main/secret.properties
- name: Run with Gradle
run: |
./gradlew clean
./gradlew assembleDebug
- name: Upload APK artifact
id: artifact-upload-step
uses: actions/upload-artifact@v4
with:
name: app-debug.apk
path: app/build/outputs/apk/debug/app-debug.apk