-
Notifications
You must be signed in to change notification settings - Fork 892
47 lines (39 loc) · 1.11 KB
/
post_merge.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
name: Upload Dependency List and Debug App
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
apkdeps:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout the Code
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build debug Apk
run: ./gradlew assembleDebug
- name: Upload Debug Apk
uses: actions/upload-artifact@v4
if: success()
with:
name: latest-apk
path: "app/build/outputs/apk/madani/debug/app-madani-debug.apk"
- name: Get dependencies list
run: ./gradlew :app:dependencies --configuration madaniReleaseRuntimeClasspath > dependencies.txt
- name: Upload dependencies list
uses: actions/upload-artifact@v4
if: success()
with:
name: dependencies
path: dependencies.txt