mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
add version to travis build github release notes
This commit is contained in:
@@ -44,6 +44,7 @@ jobs:
|
|||||||
# - env: BUILDER_THREAD=3
|
# - env: BUILDER_THREAD=3
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
|
- export FIRMWARE_VERSION=$(grep -E '^#define APP_VERSION' ./src/version.h | awk '{print $3}' | sed 's/"//g')
|
||||||
- git tag -f travis-${TAG}-build
|
- git tag -f travis-${TAG}-build
|
||||||
- git remote add gh
|
- git remote add gh
|
||||||
https://${OWNER}:${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
|
https://${OWNER}:${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
|
||||||
@@ -61,8 +62,8 @@ deploy:
|
|||||||
file: "*.bin"
|
file: "*.bin"
|
||||||
name: latest development build
|
name: latest development build
|
||||||
release_notes:
|
release_notes:
|
||||||
Automatic firmware builds of the current EMS-ESP $TRAVIS_BRANCH branch
|
Automatic firmware builds of the current EMS-ESP branch for version $FIRMWARE_VERSION.
|
||||||
(commit $TRAVIS_COMMIT). Built by Travis CI on $(date +'%F %T %Z').
|
Built by Travis CI on $(date +'%F %T %Z') from commit $TRAVIS_COMMIT.
|
||||||
cleanup: false
|
cleanup: false
|
||||||
prerelease: true
|
prerelease: true
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
|||||||
@@ -84,7 +84,8 @@ build_environments() {
|
|||||||
platformio run --silent --environment $environment || exit 1
|
platformio run --silent --environment $environment || exit 1
|
||||||
stat_bytes .pio/build/$environment/firmware.bin
|
stat_bytes .pio/build/$environment/firmware.bin
|
||||||
# mv .pio/build/$environment/firmware.bin $destination/EMS-ESP-$version-$environment.bin
|
# mv .pio/build/$environment/firmware.bin $destination/EMS-ESP-$version-$environment.bin
|
||||||
mv .pio/build/$environment/firmware.bin EMS-ESP-$version-$environment.bin
|
# mv .pio/build/$environment/firmware.bin EMS-ESP-$version-$environment.bin
|
||||||
|
mv .pio/build/$environment/firmware.bin EMS-ESP-dev-$environment.bin
|
||||||
done
|
done
|
||||||
echo "--------------------------------------------------------------"
|
echo "--------------------------------------------------------------"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user