-
-
Notifications
You must be signed in to change notification settings - Fork 9
60 lines (51 loc) · 1.5 KB
/
build_and_github_release.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build and Github Release
run-name: Cooking the next version
on:
push:
tags:
- '*'
jobs:
build:
name: Build APK
runs-on: ubuntu-latest
steps:
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
ls /dev/kvm
- name: Checkout repository
uses: actions/[email protected]
- name: Set up JDK 21
uses: actions/[email protected]
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Android SDK
uses: android-actions/[email protected]
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Assemble release variant
run: ./gradlew :app:assembleRelease
- name: Upload APK
uses: actions/[email protected]
with:
name: app-release
path: app/build/outputs/apk/release/app-release.apk
release:
name: Release
needs: build
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Download APK from build
uses: actions/[email protected]
with:
name: app-release
- name: Create release
uses: softprops/[email protected]
with:
files: app-release.apk
generate_release_notes: true