Browse Source

fix deployment

main 0.5.3-alpha.2
Hendrik Langer 4 years ago
parent
commit
3591bbfa36
  1. 8
      .drone.yml

8
.drone.yml

@ -12,6 +12,10 @@ steps:
- pip install -U platformio
- platformio run
- platformio ci --lib="script" --project-conf platformio.ini --board=lolin_d32_pro --build-dir="build" --keep-build-dir
# prepare deployment
- mkdir deploy
- cp .pio/build/lolin_d32_pro/firmware.bin deploy/${DRONE_REPO_NAME}.bin
- cp version.txt deploy/${DRONE_REPO_NAME}.version
- name: gitea_release
image: plugins/gitea-release
@ -30,8 +34,8 @@ steps:
host: 172.16.85.15
target: /var/www/fwupdate/fota/${DRONE_REPO_NAME}
source:
- .pio/build/lolin_d32_pro/*.bin
- version.txt
- deploy/${DRONE_REPO_NAME}.bin
- deploy/${DRONE_REPO_NAME}.version
#rm: true
strip_components: 1
username:

Loading…
Cancel
Save