diff --git a/.travis.yml b/.travis.yml index ddab3f0..360bd3c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,7 +38,13 @@ jobs: - stage: deploy before_script: skip script: skip - before_deploy: make tag + before_deploy: + - export VERSION=`cat VERSION` + - export ARCHIVE_NAME=/tmp/retailcrm-$VERSION.zip + - git config --local user.name "retailCRM" + - git config --local user.email "support@retailcrm.ru" + - export TRAVIS_TAG=v$VERSION + - git tag $TRAVIS_TAG deploy: provider: releases api_key: $GITHUB_OAUTH_TOKEN diff --git a/Makefile b/Makefile index 1ae58e1..63cffa5 100644 --- a/Makefile +++ b/Makefile @@ -21,11 +21,3 @@ before_script: bin/robo --load-from tests/RoboFile.php project:deploy (php -S localhost:8000 -t www &) 2> /dev/null > /dev/null sleep 2 - -tag: - export VERSION=`cat VERSION` - export ARCHIVE_NAME=/tmp/retailcrm-$VERSION.zip - git config --local user.name "retailCRM" - git config --local user.email "support@retailcrm.ru" - export TRAVIS_TAG=v$VERSION - git tag $TRAVIS_TAG \ No newline at end of file