From 92da97b71a5e430faf8eacde055b88bac9d049a6 Mon Sep 17 00:00:00 2001 From: Bazsalanszky Date: Tue, 25 Jul 2023 16:46:18 +0200 Subject: [PATCH] Woodpecker CI: create release on tag and upload apk as an artifact --- .woodpecker/build.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index a1a5965e..5b51aad9 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -4,4 +4,17 @@ pipeline: commands: - ./gradlew :app:assemble when: - path: [ app/**, build.gradle ] \ No newline at end of file + path: [ app/**, build.gradle ] + publish: + image: woodpeckerci/plugin-gitea-release + settings: + base_url: https://codeberg.org + files: + - app/build/outputs/apk/release/app-release-unsigned.apk + api_key: + from_secret: GITEA_ACCESS_TOKEN + target: main + prerelease: true + note: "This is an alpha release. Expect many bugs and unfinished features!" + when: + event: [ tag ] \ No newline at end of file