support full build and publish workflow on gitlab-ci
Some developers let their apps built and signed by GitLab CI on their self-hosted GitLab instance. They usually have a gradle plugin that automatically uploads the app to Google Play.
For F-Droid we can't simply write a gradle plugin because there is no F-Droid server where it can be pushed to, but I have an idea how this can be automated: a Git repository that contains the F-Droid repository. The GitLab CI would then execute fdroid update
and fdroid server update
, using secret variables.
To the GitLab CI of the app repository the following script is added:
git clone [F-Droid repository]
cp org.fdroid.fdroid-345.apk f-droid-repo/
cd f-droid-repo
git configure user.name "Building bot"
git configure user.email "somemail"
git push