Skip to content

Commit

Permalink
Fixed GH releases config in travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbrazzatti committed Dec 7, 2018
1 parent 28ec296 commit 2240f4b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ jobs:
include:
- stage: Build and deploy
script: npm pack
before_deploy:
- export RELEASE_PKG_FILE=$(ls *.tgz)
- echo "deploying $RELEASE_PKG_FILE to GitHub releases"
after_deploy: rm *.tgz
deploy:
- provider: releases
skip_cleanup: true
api_key: "$GH_TOKEN"
file: "*.tgz"
file_glob: true
file: "${RELEASE_PKG_FILE}"
on:
tags: true
env:
Expand Down

0 comments on commit 2240f4b

Please sign in to comment.