Skip to content

Cooking the next version #1

Cooking the next version

Cooking the next version #1

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