From 3591bbfa3677608db64347e65702b1a1ec2c3c36 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 30 Jun 2020 14:53:22 +0200 Subject: [PATCH] fix deployment --- .drone.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 13c6569..ff997ee 100644 --- a/.drone.yml +++ b/.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: