-
Notifications
You must be signed in to change notification settings - Fork 24
30 lines (28 loc) · 1.08 KB
/
testing-build.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
name: Testing build (on PR)
on:
pull_request:
branches: [ main ]
types: [ labeled, opened, synchronize, reopened ]
jobs:
testing_build:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'testers needed')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: Build debug APK
run: ./gradlew assembleCoreDebug
- name: Upload APK
id: upload
uses: actions/upload-artifact@v4
with:
name: 'unsigned-app-debug'
path: 'app/build/outputs/apk/core/debug/launcher-core-debug.apk'
- name: Post a comment with APK url
uses: thollander/actions-comment-pull-request@v2
with:
message: |
A new testing build has been prepared based on ${{ github.sha }}! [Download it here](${{ steps.upload.outputs.artifact-url }}).