-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1.02 KB
/
build_debug_apk.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
name: Build Debug APK
on:
workflow_dispatch:
push:
branches:
- develop
jobs:
build:
name: Build on merge
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 17
cache: "gradle"
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew assembleDebug
- name: Upload apk file
uses: actions/upload-artifact@v2
with:
name: Build Artifacts
path: app/build/outputs/apk/debug/app-debug.apk
- name: Distribute App
run: |
curl \
-H "Authorization: token ${{secrets.DEPLOY_GATE_API_KEY}}" \
-F "file=@app/build/outputs/apk/debug/app-debug.apk" \
-F "message=${{github.event.pull_request.title}}" \
-v "https://deploygate.com/api/users/${{secrets.DEPLOY_GATE_USER_NAME}}/apps"