From 4e0d6e72d733e3df85c426a61f6cd0e3ef006405 Mon Sep 17 00:00:00 2001
From: Remy Moll <me@moll.re>
Date: Thu, 2 May 2024 18:27:19 +0200
Subject: [PATCH] more improvements

---
 .gitea/workflows/build-android.yaml | 11 ++++++++---
 .gitea/workflows/build-web.yaml     | 13 +++++++------
 2 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/.gitea/workflows/build-android.yaml b/.gitea/workflows/build-android.yaml
index 5972680..4326093 100644
--- a/.gitea/workflows/build-android.yaml
+++ b/.gitea/workflows/build-android.yaml
@@ -17,8 +17,13 @@ jobs:
       with:
         channel: stable
         flutter-version: 3.19.0
+        cache: true
     - run: flutter pub get
     # - run: flutter test
-    - name: Build
-      run: flutter build web
-      # dumps onto publish_dir: ./build/web
+    - run: flutter build apk --debug --split-per-abi
+    - name: Push APK to Releases
+      uses: https://gitea.com/actions/release-action@main
+      with:
+        files: |-
+          build/app/outputs/**.apk
+        api_key: '${{secrets.RELEASE_TOKEN}}'
diff --git a/.gitea/workflows/build-web.yaml b/.gitea/workflows/build-web.yaml
index 7e979e8..14c48a8 100644
--- a/.gitea/workflows/build-web.yaml
+++ b/.gitea/workflows/build-web.yaml
@@ -5,16 +5,17 @@ jobs:
     name: Build Web
     runs-on: k8s
     steps:
+    - name: Install prerequisites
+      run: |
+        sudo apt-get update
+        sudo apt-get install -y xz-utils
+
     - uses: https://github.com/actions/checkout@v1
     - uses: https://github.com/subosito/flutter-action@v2
       with:
         channel: stable
         flutter-version: 3.19.0
+        cache: true
     - run: flutter pub get
     # - run: flutter test
-    - run: flutter build apk --debug --split-per-abi
-    - name: Push APK to Releases
-      uses: https://github.com/ncipollo/release-action@v1
-      with:
-        artifacts: "build/app/outputs/apk/debug/*.apk"
-        token: ${{ secrets.TOKEN }}
\ No newline at end of file
+