Skip to content

Commit cba0b1b

Browse files
committed
Try use TRAVIS_TAG.zip
1 parent e4d35a2 commit cba0b1b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ php:
66
install:
77
- composer install
88

9+
before_script:
10+
- echo ${TRAVIS_BRANCH} $TRAVIS_BRANCH ${TRAVIS_TAG} $TRAVIS_TAG
11+
912
script:
1013
- php tests/test.php
1114

@@ -16,12 +19,12 @@ before_deploy:
1619
- cp vendor dist/ -R
1720
- cp LICENSE dist/
1821
- cp README.md dist/
19-
- zip php-enphp-decoder-$TRAVIS_BRANCH.zip -r dist
22+
- zip php-enphp-decoder-${TRAVIS_TAG}.zip -r dist
2023

2124
deploy:
2225
provider: releases
2326
api_key: $GITHUB_TOKEN
24-
file: "php-enphp-decoder-$TRAVIS_TAG.zip"
27+
file: "php-enphp-decoder-${TRAVIS_TAG}.zip"
2528
skip_cleanup: true
2629
on:
2730
tags: true

0 commit comments

Comments
 (0)