Add platformio build step
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Simon 2021-10-02 03:01:01 +01:00
parent 07861a01e4
commit e2eb2c841c
1 changed files with 22 additions and 2 deletions

View File

@ -12,7 +12,12 @@ steps:
- cd Api
- go build
# Platformio esp firmware
# - name: build_esp
- name: build_esp
image: python:slim
commands:
- pip install -U platformio
- cd ESP-Temp-Humidity
- pio run
# C# frontend
# upload docker
- name: upload_frontend
@ -47,4 +52,19 @@ steps:
registry: registry.jacknet.io
auto_tag: true
# upload firmware blob
# - name: upload_esp
- name: upload_esp
image: plugins/gitea-release
depends_on:
- build
# This step is only run when a branch is tagged in Gitea.
when:
event:
- tag
settings:
base_url: https://git.jacknet.io
api_key:
from_secret: gitea_token
files:
- ESP-Temp-Humidity\.pio\build\esp07\firmware.bin
checksum:
- sha1