-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (34 loc) · 1.13 KB
/
AndroidBuild.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
name: AndroidBuild
on:
pull_request:
branches: [ develop ]
push:
branches:
- '**'
jobs:
build:
runs-on : ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Java JDK
uses: actions/[email protected]
with:
java-version: '19'
distribution: 'adopt'
gradle-version: 8.2
- name: Access DEBUG_API_KEY from Secrets
env:
DEBUG_API_KEY: ${{ secrets.DEBUG_API_KEY }}
run: echo DEBUG_API_KEY=\"DEBUG_API_KEY\" > $GITHUB_WORKSPACE/debugapikey.properties
- name: Access RELEASE_API_KEY from Secrets
env:
RELEASE_API_KEY: ${{ secrets.RELEASE_API_KEY }}
run: echo RELEASE_API_KEY=\"RELEASE_API_KEY\" > $GITHUB_WORKSPACE/releaseapikey.properties
- name: Build with Gradle
run: ./gradlew assembleDebug
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: WalliesCompose.apk
path: app/build/outputs/apk/debug/app-debug.apk