Skip to content

Commit

Permalink
chore: fix github-release for assets uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Drukh committed Aug 8, 2018
1 parent 9312a04 commit 0bfeb0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/travis_after_success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ npx pkg . # create standalone binaries based on the latest `pkg`
export SNYK_VERSION=$(./cli/index.js -v)

# upload assets built by `pkg`
npm i -g github-release
# GH_TOKEN is set as Travis env var
GITHUB_TOKEN=$GH_TOKEN npx github-release upload --owner snyk --repo snyk --tag "v${SNYK_VERSION}" --name "v${SNYK_VERSION}" ./snyk-linux ./snyk-macos ./snyk-win.exe
github-release upload --token "${GH_TOKEN}" --owner snyk --repo snyk --tag "v${SNYK_VERSION}" ./snyk-linux ./snyk-macos ./snyk-win.exe

0 comments on commit 0bfeb0b

Please sign in to comment.