2022-07-29 08:48:09 +02:00
|
|
|
kind: pipeline
|
|
|
|
name: build and publish site
|
|
|
|
steps:
|
2022-07-29 14:19:01 +02:00
|
|
|
- name: submodules
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
|
2022-07-29 08:48:09 +02:00
|
|
|
- name: build apk
|
2022-07-29 14:09:49 +02:00
|
|
|
image: itsblue.dev/plugins/qt-android:5.15.5-1
|
2022-07-29 08:48:09 +02:00
|
|
|
settings:
|
2022-07-30 14:35:59 +02:00
|
|
|
qmake_arguments: "CONFIG+=release"
|
2022-08-01 12:00:43 +02:00
|
|
|
androiddeployqt_arguments: "--android-platform android-31"
|
2022-07-29 08:48:09 +02:00
|
|
|
|
|
|
|
- name: publish package
|
2022-07-29 14:29:01 +02:00
|
|
|
image: alpine/curl
|
2022-07-29 08:48:09 +02:00
|
|
|
commands:
|
2022-07-30 13:52:34 +02:00
|
|
|
- env
|
2022-07-30 14:22:04 +02:00
|
|
|
- "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"
|
2022-07-29 14:26:45 +02:00
|
|
|
environment:
|
|
|
|
GITEA_USER:
|
2022-07-29 14:35:31 +02:00
|
|
|
from_secret: gitea-user
|
2022-07-29 14:26:45 +02:00
|
|
|
GITEA_TOKEN:
|
2022-07-29 14:35:31 +02:00
|
|
|
from_secret: gitea-token
|