-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 882 Bytes
/
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
name: Android CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Access CLIENT_ID
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
run: echo CLIENT_ID=\"$CLIENT_ID\" > ./apikey.properties
- name: Access CLIENT_SECRET
env:
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
run: echo CLIENT_SECRET=\"$CLIENT_SECRET\" >> ./apikey.properties
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
- name: Build with Gradle
run: ./gradlew clean && ./gradlew assembleDebug
- uses: actions/upload-artifact@v3
with:
name: app-debug.apk
path: app/build/outputs/apk/debug/app-debug.apk