Skip to content

Commit

Permalink
💚 Experimental github release for pkg binary
Browse files Browse the repository at this point in the history
  • Loading branch information
segersniels committed May 23, 2019
1 parent aa38d2f commit 2854309
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: 2
defaults: &defaults
working_directory: ~/supdock
docker:
- image: circleci/node:10

jobs:
build:
<<: *defaults
steps:
- checkout
- run: npm install
- run: npm run build
- run:
name: "GitHub release"
command: |
wget https://github.com/tcnksm/ghr/releases/download/v0.12.1/ghr_v0.12.1_linux_amd64.tar.gz
tar -xzvf ghr_v0.12.1_linux_amd64.tar.gz
VERSION=$(./bin/supdock --version)
./ghr_v0.12.1_linux_amd64/ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./bin/supdock
workflows:
version: 2
build-deploy:
jobs:
- build:
filters:
branches:
only:
- master

0 comments on commit 2854309

Please sign in to comment.