Skip to content

Commit

Permalink
use ghr for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanleo committed Oct 21, 2018
1 parent 2c0e272 commit cef931a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,16 @@ jobs:
- radio-clerk
deploy:
docker:
- image: ruby:2.5
- image: circleci/golang:1.10.4
working_directory: /tmp
steps:
- attach_workspace:
at: /tmp/workspace
at: ./artifacts
- run:
name: Setup Environment Variables
name: "Publish Release on GitHub"
command: |
echo 'export TRAVIS_TAG="$CIRCLE_SHA1"' >> $BASH_ENV
- run: gem install dpl
- run: dpl --provider=releases --repo=bottleneckco/radio-clerk "--release-number=$CIRCLE_BRANCH-$CIRCLE_SHA1-$CIRCLE_BUILD_NUM" --api-key=$GITHUB_TOKEN --file=radio-clerk --prerelease
go get github.com/tcnksm/ghr
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete "${CIRCLE_SHA1}-${CIRCLE_BUILD_NUM}" ./artifacts/
workflows:
version: 2
build-and-deploy:
Expand Down

0 comments on commit cef931a

Please sign in to comment.