Check Pico::VERSION constant before deploying a new release
This commit is contained in:
parent
b405edba17
commit
568166ad07
2 changed files with 3 additions and 2 deletions
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue