Check Pico::VERSION constant before deploying a new release

This commit is contained in:
Daniel Rudolf 2018-03-29 22:48:24 +02:00
parent b405edba17
commit 568166ad07
No known key found for this signature in database
GPG key ID: A061F02CD8DE4538
2 changed files with 3 additions and 2 deletions

View file

@ -32,7 +32,8 @@ jobs:
script:
- deploy.sh
before_deploy:
- create-release.sh "$TRAVIS_BUILD_DIR/pico-release-$TRAVIS_TAG.tar.gz"
- '[ "$TRAVIS_TAG" == "v$(php -r "require_once(\"lib/Pico.php\"); echo Pico::VERSION;")" ]'
- create-release.sh "pico-release-$TRAVIS_TAG.tar.gz"
deploy:
provider: releases
api_key: ${GITHUB_OAUTH_TOKEN}

View file

@ -49,7 +49,7 @@ class Pico
*
* @var string
*/
const VERSION = '2.0.0-beta.1';
const VERSION = '2.0.0-beta.3';
/**
* Pico version ID