Add build info to deployed version
This commit is contained in:
1 parent
611ed749c9
commit
7fb1918fcb
2 files changed
+11
-2
No files matched your search
+10
-2
@@ -14,8 +14,16 @@ build_package() {
|
||||
PRODUCTION=1 npm run webpack
|
||||
}
|
||||
|
||||
build_info() {
|
||||
VERSION=$(git describe --tags --always)
|
||||
echo "version: ${VERSION}" >> dist/version-info.txt
|
||||
echo "time: $(TZ=UTC date +'%Y-%m-%d %H:%M')" >> dist/version-info.txt
|
||||
if [ -n "$TRAVIS" ]; then
|
||||
echo "build id: TRAVIS ${TRAVIS_JOB_NUMBER} (${TRAVIS_BUILD_ID})" >> dist/version-info.txt
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
install_closure
|
||||
build_package
|
||||
|
||||
ls dist/
|
||||
build_info
|
||||
Reference in new issue
Block a user