diff --git a/.travis.yml b/.travis.yml index 41306cb..8a22d57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: