-
-
Notifications
You must be signed in to change notification settings - Fork 365
43 lines (35 loc) · 1.01 KB
/
release_app.yml
File metadata and controls
43 lines (35 loc) · 1.01 KB
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
name: Android Release Build
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '21'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Grant execute permission
run: chmod +x gradlew
- name: build app apk
run: ./gradlew :app:assembleChargeRelease;
- name: build imitate apk
run: ./gradlew :imitate:assembleRelease;
- name: Upload APK1 to GitHub Release
uses: softprops/action-gh-release@v2
with:
files: app/build/outputs/apk/charge/release/*.apk
- name: Upload APK2 to GitHub Release
uses: softprops/action-gh-release@v2
with:
files: imitate/build/outputs/apk/release/*.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}