Write out full version to log
This commit is contained in:
parent
dfbaa1afd3
commit
24e2576645
@ -11,6 +11,7 @@ if test "$TRAVIS_TAG"; then
|
|||||||
|
|
||||||
# Pass in the tag as the version to write out
|
# Pass in the tag as the version to write out
|
||||||
php artisan phpvms:version --write --write-full-version "${VERSION}"
|
php artisan phpvms:version --write --write-full-version "${VERSION}"
|
||||||
|
FULL_VERSION=$(php artisan phpvms:version)
|
||||||
else
|
else
|
||||||
echo "On branch $TRAVIS_BRANCH"
|
echo "On branch $TRAVIS_BRANCH"
|
||||||
|
|
||||||
@ -25,6 +26,7 @@ else
|
|||||||
|
|
||||||
# This now includes the pre-release version, so "-dev" by default
|
# This now includes the pre-release version, so "-dev" by default
|
||||||
VERSION=${BASE_VERSION}
|
VERSION=${BASE_VERSION}
|
||||||
|
FULL_VERSION=$(php artisan phpvms:version)
|
||||||
|
|
||||||
# Don't pass in a version here, just write out the latest hash
|
# Don't pass in a version here, just write out the latest hash
|
||||||
php artisan phpvms:version --write "${VERSION}"
|
php artisan phpvms:version --write "${VERSION}"
|
||||||
@ -137,4 +139,4 @@ else
|
|||||||
artifacts upload --target-paths "/" ${TRAVIS_BRANCH}_version
|
artifacts upload --target-paths "/" ${TRAVIS_BRANCH}_version
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl -X POST --data "{\"content\": \"A new build is available at http://downloads.phpvms.net/$TAR_NAME ($VERSION)\"}" -H "Content-Type: application/json" $DISCORD_WEBHOOK_URL
|
curl -X POST --data "{\"content\": \"A new build is available at http://downloads.phpvms.net/$TAR_NAME ($FULL_VERSION)\"}" -H "Content-Type: application/json" $DISCORD_WEBHOOK_URL
|
||||||
|
Loading…
Reference in New Issue
Block a user