This commit is contained in:
parent
5b61d356d2
commit
247827ede3
1 changed files with 40 additions and 41 deletions
27
.drone.yml
27
.drone.yml
|
@ -7,15 +7,6 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
- name: extract keystore
|
|
||||||
image: alpine
|
|
||||||
commands:
|
|
||||||
- echo $ANDROID_RELEASE_KEYSTORE | base64 -d > android_release.keystore
|
|
||||||
- du -hs ./android_release.keystore
|
|
||||||
environment:
|
|
||||||
ANDROID_RELEASE_KEYSTORE:
|
|
||||||
from_secret: android-release-keystore
|
|
||||||
|
|
||||||
- name: build firmware
|
- name: build firmware
|
||||||
image: python:3.6
|
image: python:3.6
|
||||||
commands:
|
commands:
|
||||||
|
@ -30,20 +21,28 @@ steps:
|
||||||
qmake_arguments: "CONFIG+=release"
|
qmake_arguments: "CONFIG+=release"
|
||||||
androiddeployqt_arguments: "--android-platform android-31"
|
androiddeployqt_arguments: "--android-platform android-31"
|
||||||
src_dir: app
|
src_dir: app
|
||||||
android_keystore_path: "android_release.keystore"
|
android_keystore_data:
|
||||||
|
from_secret: android-release-keystore
|
||||||
android_keystore_alias: "bmca"
|
android_keystore_alias: "bmca"
|
||||||
android_keystore_store_pass:
|
android_keystore_store_pass:
|
||||||
from_secret: android-release-keystore-password
|
from_secret: android-release-keystore-password
|
||||||
|
|
||||||
|
- name: move outputs in place
|
||||||
|
image: alpine
|
||||||
|
commands:
|
||||||
|
- mkdir dist
|
||||||
|
- mv ./firmware/firmware-esp32.bin dist
|
||||||
|
- mv ./outputs/apk/release/android-build-release-signed.apk dist
|
||||||
|
- mv ./outputs/bundle/release/android-build-release.aab dist
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
- name: release
|
- name: release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
base_url: https://itsblue.dev
|
base_url: https://itsblue.dev
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: gitea-token
|
from_secret: gitea-token
|
||||||
files:
|
files: dist/*
|
||||||
- ./firmware/firmware-esp32.bin
|
|
||||||
- ./outputs/apk/release/android-build-release-signed.apk
|
|
||||||
- ./outputs/bundle/release/android-build-release.aab
|
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
Loading…
Reference in a new issue