-
-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathbuild_debug_from_translations_pr.yml
More file actions
41 lines (33 loc) · 1010 Bytes
/
build_debug_from_translations_pr.yml
File metadata and controls
41 lines (33 loc) · 1010 Bytes
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
name: Build Debug APK (Translations PR)
on:
pull_request:
branches:
- master
paths:
- "app/src/main/res/**"
- "app/src/main/assets/translators.json"
jobs:
build-debug:
if: github.event.pull_request.head.ref == 'localization'
runs-on: ubuntu-latest
steps:
- name: Checkout PR commit
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Set up Android SDK
uses: android-actions/setup-android@v3
- name: Grant execute permission to Gradle
run: chmod +x ./gradlew
- name: Build Debug APK
run: ./gradlew assembleDebug
- name: Upload Debug APK
uses: actions/upload-artifact@v4
with:
name: debug-apk-${{ github.event.pull_request.number }}
path: app/build/outputs/apk/debug/*.apk