1
0
MAX7456JSON/.drone.yml
Jens True f14fef340e
Some checks failed
continuous-integration/drone/push Build is failing
Use SCP to push builds
2021-11-01 08:57:29 +00:00

39 lines
780 B
YAML

kind: pipeline
name: default
steps:
- name: build
image: python:3
commands:
- pip install platformio
- pio run
- pio check --skip-packages
- name: docs
image: corentinaltepe/doxygen
commands:
- doxygen
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: DRONE_ACCESS_TOKEN
base_url: https://code.jcktrue.dk
files:
- .pio/build/max7456board/firmware.hex
when:
event: tag
- name: upload
image: appleboy/drone-scp
settings:
host: jcktrue.dk
username:
from_secret: DRONE_USERNAME_SCP
secret_key:
from_secret: DRONE_PASSWORD_SCP
source:
- .pio\build\max7456board\firmware.hex
- docs/**
target: /apps/http/share.jcktrue.dk/${DRONE_REPO_NAME}/dev
rm: true