Skip to content

Commit

Permalink
ci: make GH draft release with artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
chesedo committed Nov 18, 2022
1 parent b8f5a09 commit 9bc48eb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,18 @@ jobs:
root: artifacts
paths:
- shuttle-version-x86_64-unknown-linux-musl.tar.gz
publish-github-release:
docker:
- image: cimg/go:1.19.3
steps:
- attach_workspace:
at: artifacts
- run:
name: "Publish Release on GitHub"
command: |
go install github.com/tcnksm/ghr@v0.16.0
VERSION=version
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} -draft artifacts/
workflows:
version: 2
Expand Down Expand Up @@ -330,3 +342,6 @@ workflows:
# - build-binaries:
# requires:
# - build-and-push
- publish-github-release:
requires:
- build-binaries

0 comments on commit 9bc48eb

Please sign in to comment.