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