2019-03-29 15:52:09 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
2019-07-11 06:50:42 +00:00
|
|
|
image: python:3
|
2019-03-29 15:52:09 +00:00
|
|
|
commands:
|
2019-03-29 20:49:51 +00:00
|
|
|
- pip install platformio
|
2019-11-28 08:50:54 +00:00
|
|
|
- pio check
|
2019-03-29 18:35:06 +00:00
|
|
|
- pio run
|
2019-03-29 16:18:11 +00:00
|
|
|
- name: upload
|
2019-07-11 06:50:42 +00:00
|
|
|
image: python:3
|
2019-03-29 16:18:11 +00:00
|
|
|
commands:
|
2019-03-29 18:23:32 +00:00
|
|
|
- make otaupload
|
2019-07-11 07:22:33 +00:00
|
|
|
when:
|
|
|
|
event: tag
|
2019-03-29 18:23:32 +00:00
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
2019-10-08 13:35:21 +00:00
|
|
|
api_key:
|
2019-10-25 08:09:41 +00:00
|
|
|
from_secret: DRONE_ACCESS_TOKEN
|
2019-03-29 18:23:32 +00:00
|
|
|
base_url: https://code.jcktrue.dk
|
|
|
|
files:
|
2019-07-11 07:15:13 +00:00
|
|
|
- .pio/build/nodemcu/firmware.bin
|
2019-11-29 09:53:44 +00:00
|
|
|
checksum:
|
|
|
|
- md5
|
|
|
|
- sha1
|
|
|
|
- sha256
|
|
|
|
- sha512
|
|
|
|
- adler32
|
|
|
|
- crc32
|
2019-03-29 18:23:32 +00:00
|
|
|
when:
|
2019-07-11 06:50:42 +00:00
|
|
|
event: tag
|