From facb3326de6f356628042a3eab7731313f1a67a5 Mon Sep 17 00:00:00 2001 From: zypherift Date: Sat, 28 Nov 2026 02:19:03 +0100 Subject: [PATCH] ci: build and publish a release apk on main The website's .apk button links to the newest main build, and main only published an .aab, which phones can't install. --- .woodpecker.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 4ec9d051..73fd0d46 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -122,6 +122,8 @@ steps: - BUILD_NAME="$BASE_VERSION-$SHA" - VERSION_CODE=$((2000 + COMMIT_COUNT)) - flutter build appbundle --release --build-name="$BUILD_NAME" --build-number="$VERSION_CODE" + # universal apk for the website's download button, the .aab is for stores + - flutter build apk --release --build-name="$BUILD_NAME" --build-number="$VERSION_CODE" - name: build-debug image: git.firka.app/firka/firka-builder:latest @@ -157,6 +159,23 @@ steps: file_name: app-release.aab update: 'true' + - name: publish-release-apk + image: woodpeckercommunity/plugin-gitea-package:latest + pull: true + when: + - branch: [main, staging] + settings: + user: + from_secret: gitea_username + password: + from_secret: gitea_token + owner: firka + package_name: firka + package_version: ${CI_COMMIT_SHA} + file_source: ./firka/build/app/outputs/flutter-apk/app-release.apk + file_name: app-release.apk + update: 'true' + - name: publish-debug-arm64-v8a image: woodpeckercommunity/plugin-gitea-package:latest pull: true