From b450d3a4065ab2435469697766ab98ecc3b3f7f4 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Mon, 1 Aug 2022 22:27:13 +0200 Subject: [PATCH] Add '.drone.yml' --- .drone.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..2954595 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,18 @@ +kind: pipeline +name: build and publish Qt Android-App +steps: +- name: build apk + image: itsblue.dev/plugins/qt-android:5.15.5-1 + settings: + qmake_arguments: "CONFIG+=release" + androiddeployqt_arguments: "--android-platform android-31" +- 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/ScStw/generic/app/0.0.0-preview-${DRONE_COMMIT_SHA}/ScStwApp.apk" + environment: + GITEA_USER: + from_secret: gitea-user + GITEA_TOKEN: + from_secret: gitea-token \ No newline at end of file