3 Commits

Author SHA1 Message Date
795043a639 Only upload on new release
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
2019-07-11 09:22:33 +02:00
b0a485d578 Fixed release upload
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build is failing
2019-07-11 09:15:13 +02:00
3d4399c33d Updated to PIOv4
Some checks failed
continuous-integration/drone/push Build is failing
2019-07-11 09:12:45 +02:00
2 changed files with 6 additions and 4 deletions

View File

@ -11,13 +11,15 @@ steps:
image: python:3
commands:
- make otaupload
when:
event: tag
- name: release
image: plugins/gitea-release
settings:
api_key: a7f3afc9f77e721951e48b4af66d7565700b7a2e
base_url: https://code.jcktrue.dk
files:
- .pioenvs/nodemcu/firmware.bin
- .pioenvs/nodemcu/firmware.elf
- .pio/build/nodemcu/firmware.bin
- .pio/build/nodemcu/firmware.elf
when:
event: tag

View File

@ -2,5 +2,5 @@ build:
pio run
otaupload:
pip install -r .pio/libdeps/Homie/scripts/ota_updater/requirements.txt
python .pio/libdeps/Homie/scripts/ota_updater/ota_updater.py -l mqtt.jcktrue.dk -i 18fe34f2f987 .pio/build/nodemcu/firmware.bin
pip install -r .pio/libdeps/nodemcu/Homie/scripts/ota_updater/requirements.txt
python .pio/libdeps/nodemcu/Homie/scripts/ota_updater/ota_updater.py -l mqtt.jcktrue.dk -i 18fe34f2f987 .pio/build/nodemcu/firmware.bin