From 82f86a9c23ae5bb44fa5903838cc1fc97c123765 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Fri, 19 Jul 2019 01:16:04 +0200 Subject: [PATCH] include version file --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4bdacb1..67402b5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,13 +9,13 @@ build: - pip install -U platformio - platformio update script: -# - date +%s > version.txt +# - date +%s > build/version.txt - platformio ci --lib="script" --project-conf platformio.ini --board=lolin_d32_pro --build-dir="build" --keep-build-dir variables: {PLATFORMIO_CI_SRC: "src"} artifacts: paths: - build/.pio/build/lolin_d32_pro/*.bin - - version.txt + - build/version.txt deploy: stage: deploy @@ -31,7 +31,7 @@ deploy: - chmod 644 ~/.ssh/known_hosts script: - scp build/.pio/build/lolin_d32_pro/firmware.bin "${SSH_USER_HOST}:${DEPLOY_PATH}" - - scp version.txt "${SSH_USER_HOST}:${DEPLOY_PATH}".version + - scp build/version.txt "${SSH_USER_HOST}:${DEPLOY_PATH}".version dependencies: - build when: manual