Skip to content

Commit f1ce4dd

Browse files
Build
1 parent 2bd67e8 commit f1ce4dd

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.travis.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ script:
1111
- npm run build && gulp package
1212

1313
before_deploy:
14-
# Set up git user name and tag this commit
15-
- git config --local user.name "robertjgabriel"
16-
- git config --local user.email "robert_gabriel@outlook.com"
17-
- export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)}
18-
- git tag $TRAVIS_TAG
19-
20-
14+
- export TRAVIS_TAG="1.0.$TRAVIS_BUILD_NUMBER"
15+
- echo "$TRAVIS_TAG" "$TRAVIS_COMMIT"
16+
- git config --local user.name "robertjgabriel"
17+
- git config --local user.email "robert_gabriel@outlook.com"
18+
- git tag "$TRAVIS_TAG" "$TRAVIS_COMMIT"
2119
deploy:
2220
provider: releases
2321
api_key: $GITHUB_TOKEN

0 commit comments

Comments
 (0)