Skip to content

Commit

Permalink
chore: remove github assets publishing, not functional yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Drukh committed Aug 9, 2018
1 parent ff02ac1 commit 2f6402d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ jobs:
- stage: Release
node_js: "8"
script:
# run only if this is a 'push' build
# 1. grab and run semantic-release
# (not used as a dev dep because it pulls in new `npm` and breaks our tests)
# 2. run post-release actions
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npx semantic-release && bash scripts/travis_after_success.sh; fi'
- test "${TRAVIS_PULL_REQUEST}" = "true" || npx semantic-release
branches:
only:
- "master"
12 changes: 0 additions & 12 deletions scripts/travis_after_success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,3 @@ if [ "$TRAVIS_BRANCH" = "master" ]; then
curl "https://g.codefresh.io/api/builds/$GRADLE44_BUILD_ID" -H "content-type:application/json; charset=utf-8" -H "x-access-token: $CF_ACCESS_TOKEN" --data-binary "{\"repoOwner\":\"snyk\",\"repoName\":\"snyk\",\"serviceId\":\"$GRADLE44_BUILD_ID\",\"branch\":\"master\",\"type\":\"build\"}" --compressed
fi

# grab latest version and publish its assets
npm i -g snyk # must install to get the proper `version` key
cd $(dirname $(which snyk))/../lib/node_modules/snyk

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-release upload --token "${GH_TOKEN}" --owner snyk --repo snyk --tag "v${SNYK_VERSION}" ./snyk-linux ./snyk-macos ./snyk-win.exe

0 comments on commit 2f6402d

Please sign in to comment.