-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💚 Experimental github release for pkg binary
- Loading branch information
1 parent
aa38d2f
commit 2854309
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |