From d0ef97879ccf7d4e8752a0e9a49678eaea17140a Mon Sep 17 00:00:00 2001 From: ale Date: Sat, 28 Feb 2026 01:42:00 +0100 Subject: [PATCH] github actions Signed-off-by: ale --- .github/workflows/build-release-apk.yml | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build-release-apk.yml diff --git a/.github/workflows/build-release-apk.yml b/.github/workflows/build-release-apk.yml new file mode 100644 index 0000000..86b067a --- /dev/null +++ b/.github/workflows/build-release-apk.yml @@ -0,0 +1,35 @@ +name: Build & Publish APK Release + +on: + push: + tags: + - 'v*' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + - name: Make Gradle executable + run: chmod +x ./gradlew + + - name: Build with Gradle + run: ./gradlew build + + - name: Build Debug APK + run: ./gradlew assembleDebug + + - name: Upload APK to Release + uses: softprops/action-gh-release@v1 + with: + files: app/build/outputs/apk/debug/*.apk + env: + GITHUB_TOKEN: ${{ secrets.TOKEN }}