This commit is contained in:
parent
39ab8bbccf
commit
7effe1a584
1 changed files with 36 additions and 0 deletions
36
.drone.yml
Normal file
36
.drone.yml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: submodules
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
|
- name: build app
|
||||||
|
image: itsblue.dev/plugins/qt-android:5.15.5-2
|
||||||
|
settings:
|
||||||
|
qmake_arguments: "CONFIG+=release"
|
||||||
|
androiddeployqt_arguments: "--android-platform android-31"
|
||||||
|
src_dir: app
|
||||||
|
|
||||||
|
- name: release
|
||||||
|
image: plugins/gitea-release
|
||||||
|
settings:
|
||||||
|
base_url: https://itsblue.dev
|
||||||
|
api_key:
|
||||||
|
from_secret: gitea-token
|
||||||
|
files:
|
||||||
|
- ./firmware/firmware-esp32.bin
|
||||||
|
- ./outputs/apk/release/android-build-release-signed.apk
|
||||||
|
- ./outputs/bundle/release/android-build-release.aab
|
||||||
|
when:
|
||||||
|
event: tag
|
Loading…
Reference in a new issue