From 13f957f01611060001f100eb8324bad917b4e058 Mon Sep 17 00:00:00 2001 From: Flummi Date: Wed, 11 Jun 2025 12:16:32 +0200 Subject: [PATCH] test schmest --- .gitea/workflows/android.yml | 14 ++++++++------ pubspec.yaml | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/android.yml b/.gitea/workflows/android.yml index b90d7dc..f129533 100644 --- a/.gitea/workflows/android.yml +++ b/.gitea/workflows/android.yml @@ -3,7 +3,7 @@ name: Flutter Schmutter on: push: tags: - - 'v*' + - '*' jobs: build: @@ -51,9 +51,11 @@ jobs: files: |- build/app/outputs/flutter-apk/app-release.apk token: '${{secrets.RELEASE_TOKEN}}' - - - name: wait for gitea to catch up - run: sleep 10 - - name: trigger fdroid puller - run: curl https://flumm.io/pullfdroid.php?token=${{secrets.PULLER_TOKEN}} + - name: upload apk to f-droid server + run: | + BUILD_NUMBER=$(grep '^version:' pubspec.yaml | sed 's/.*+//') + curl -X POST "https://flumm.io/pullfdroid.php" \ + -F "token=${{ secrets.PULLER_TOKEN }}" \ + -F "apk=@build/app/outputs/flutter-apk/app-release.apk" \ + -F "build=$BUILD_NUMBER" diff --git a/pubspec.yaml b/pubspec.yaml index fd0c82f..d46bf54 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.1.16+46 +version: 1.1.17+47 environment: sdk: ^3.9.0-100.2.beta