Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 5812235

Browse files
authored
Merge pull request #123 from Daviteusz/master
Build debug apks using workflow
2 parents cf1604a + 4d57fce commit 5812235

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/build-debug.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Generate APK Debug
2+
3+
on:
4+
# Triggers the workflow on push or pull request events but only for default and protected branches
5+
push:
6+
branches:
7+
- master
8+
- debug
9+
pull_request:
10+
branches:
11+
- master
12+
- debug
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v1
20+
21+
- name: Set Up JDK
22+
uses: actions/setup-java@v1
23+
with:
24+
java-version: 11
25+
26+
- name: Change wrapper permissions
27+
run: chmod +x ./gradlew
28+
29+
- name: Run tests
30+
run: ./gradlew test
31+
32+
# Create APK Debug
33+
- name: Build apk debug
34+
run: ./gradlew app:assembleDefaultDebug
35+
36+
- name: Build apk fdroid-debug
37+
run: ./gradlew app:assembleFdroidDebug
38+
39+
# Upload Artifact Build
40+
# Noted For Output [module-name]/build/outputs/apk
41+
- name: Upload apk debug
42+
uses: actions/upload-artifact@v3
43+
with:
44+
name: FoxMmm-debug
45+
path: app/build/outputs/apk/default/debug/app-default-debug.apk
46+
47+
- name: Upload apk fdroid-debug
48+
uses: actions/upload-artifact@v3
49+
with:
50+
name: FoxMmm-fdroid-debug
51+
path: app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk

0 commit comments

Comments
 (0)