Skip to content

Commit e8820cf

Browse files
committed
Build and push releases to GitHub on new tags
Set up Travis CI integration, so that we build the application and push the tarball to GitHub on every new annotated git tag.
1 parent e089051 commit e8820cf

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)