diff --git a/.travis.yml b/.travis.yml index b4ff744..1ac93b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,11 +37,15 @@ jobs: 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 skip_cleanup: true file: $ARCHIVE_NAME - php: 7.1 + if: branch = master AND type = push on: - branch: master \ No newline at end of file + php: 7.1 \ No newline at end of file