forked from fahrez182/AxManager
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 1.04 KB
/
build_debug_apk.yml
File metadata and controls
40 lines (32 loc) · 1.04 KB
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
name: Build debug APK
on:
workflow_call:
inputs:
app-name:
required: false
type: string
default: 'App'
jobs:
build:
name: Build debug APK
runs-on: ubuntu-latest
steps:
- name: Check the code
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build debug APK
run: ./gradlew assembleDebug
- name: Save current date as env variable
run: echo "current_date=$(date +'%I%M_%Y%m%d')" >> $GITHUB_ENV
- name: Upload debug APK
uses: actions/upload-artifact@v4
with:
name: '${{ inputs.app-name }}-debug-${{ env.current_date }}'
path: app/build/outputs/apk/debug/*.apk
if-no-files-found: error