Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 28d3a79

Browse files
authoredDec 26, 2017
Merge pull request #20 from xsnippet/github_releases
Build and push releases to GitHub on new tags
2 parents c92e002 + e8820cf commit 28d3a79

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎.travis.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,15 @@ node_js:
99
script:
1010
- npm run lint
1111
- npm run build
12+
13+
before_deploy:
14+
- export RELEASE_NAME="xsnippet_web-$(git describe --exact-match --abbrev=0).tar.gz"
15+
- tar cvzf $RELEASE_NAME -C dist/ .
16+
17+
deploy:
18+
provider: releases
19+
api_key: $GITHUB_TOKEN
20+
file: $RELEASE_NAME
21+
skip_cleanup: true
22+
on:
23+
tags: true

0 commit comments

Comments
 (0)
Please sign in to comment.