From 30471725d024fe57bc4279258de98d84c4cc8996 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Mon, 8 Aug 2022 23:48:09 +0200 Subject: [PATCH] Update '.drone.yml' --- .drone.yml | 49 ++++++++++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8055358..82f59b7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,24 +1,31 @@ kind: pipeline -name: build and publish site +name: default steps: -- name: submodules - image: alpine/git - commands: - - git submodule update --init --recursive - -- name: build apk - image: itsblue.dev/plugins/qt-android:5.15.5-2 - settings: - qmake_arguments: "CONFIG+=release" - androiddeployqt_arguments: "--android-platform android-31" + - name: submodules + image: alpine/git + commands: + - git submodule update --init --recursive -- name: publish package - image: alpine/curl - commands: - - env - - "curl --fail --user $GITEA_USER:$GITEA_TOKEN --upload-file outputs/apk/debug/android-build-debug.apk https://itsblue.dev/api/packages/bluerock/generic/app/0-preview-${DRONE_COMMIT_SHA}/bluerock.apk" - environment: - GITEA_USER: - from_secret: gitea-user - GITEA_TOKEN: - from_secret: gitea-token \ No newline at end of file + - name: build app + image: itsblue.dev/plugins/qt-android:5.15.5-3 + settings: + qmake_arguments: "CONFIG+=release" + androiddeployqt_arguments: "--android-platform android-31 --aab" + src_dir: app + android_keystore_data: + from_secret: android-release-keystore + android_keystore_alias: "bmca" + android_keystore_store_pass: + from_secret: android-release-keystore-password + + - name: release + image: plugins/gitea-release + settings: + base_url: https://itsblue.dev + api_key: + from_secret: gitea-token + files: + - app/outputs/apk/release/android-build-release-signed.apk + - app/outputs/bundle/release/android-build-release.aab + when: + event: tag \ No newline at end of file