Skip to content

Commit

Permalink
Copy all release artifacts to one dir for ghr
Browse files Browse the repository at this point in the history
  • Loading branch information
hatstand committed Jan 2, 2020
1 parent 702d69e commit ba6879e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -793,13 +793,17 @@ jobs:
steps:
- attach_workspace:
at: /tmp/artifacts
- run:
name: Aggregate artifacts
command: |
mkdir -p release_artifacts
cp /tmp/artifacts/**/* release_artifacts/
- run:
name: Publish Release on GitHub
command: |
go get github.com/tcnksm/ghr
VERSION=${CIRCLE_TAG}
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} /tmp/artifacts/**/*
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} release_artifacts/
workflows:
version: 2
build_all:
Expand Down

0 comments on commit ba6879e

Please sign in to comment.