LedDisplay/.drone.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

2022-08-03 13:25:55 +02:00
kind: pipeline
name: default
steps:
2022-08-05 08:58:12 +02:00
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
2022-08-03 13:25:55 +02:00
2022-08-05 08:58:12 +02:00
- name: build firmware
image: python:3.6
commands:
- cd firmware
- "pip install -U platformio"
- "platformio run --environment esp32"
- cp .pio/build/esp32/firmware.bin firmware-esp32.bin
2022-08-03 13:51:57 +02:00
2022-08-05 08:58:12 +02:00
- name: build app
image: itsblue.dev/plugins/qt-android:5.15.5-3
settings:
qmake_arguments: "CONFIG+=release"
2022-08-05 10:14:32 +02:00
androiddeployqt_arguments: "--android-platform android-31 --aab"
2022-08-05 08:58:12 +02:00
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
2022-08-03 13:52:23 +02:00
2022-08-05 08:58:12 +02:00
- name: release
image: plugins/gitea-release
settings:
base_url: https://itsblue.dev
api_key:
from_secret: gitea-token
2022-08-05 09:56:59 +02:00
files:
2022-08-05 10:04:12 +02:00
- firmware/firmware-esp32.bin
- app/outputs/apk/release/android-build-release-signed.apk
- app/outputs/bundle/release/android-build-release.aab
2022-08-05 08:58:12 +02:00
when:
event: tag