Skip to content

Commit 9bc48eb

Browse files
committed
ci: make GH draft release with artifacts
1 parent b8f5a09 commit 9bc48eb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.circleci/config.yml

+15
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,18 @@ jobs:
282282
root: artifacts
283283
paths:
284284
- shuttle-version-x86_64-unknown-linux-musl.tar.gz
285+
publish-github-release:
286+
docker:
287+
- image: cimg/go:1.19.3
288+
steps:
289+
- attach_workspace:
290+
at: artifacts
291+
- run:
292+
name: "Publish Release on GitHub"
293+
command: |
294+
go install github.com/tcnksm/[email protected]
295+
VERSION=version
296+
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} -draft artifacts/
285297
286298
workflows:
287299
version: 2
@@ -330,3 +342,6 @@ workflows:
330342
# - build-binaries:
331343
# requires:
332344
# - build-and-push
345+
- publish-github-release:
346+
requires:
347+
- build-binaries

0 commit comments

Comments
 (0)