Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 4666318

Browse files
authored
Also upload build files of feature branches as pre-releases
1 parent 3db592f commit 4666318

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.circleci/config.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ jobs:
5959
go get -u github.com/tcnksm/ghr
6060
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete r${CIRCLE_BUILD_NUM} ./artifacts/
6161
62+
publish-github-pre-release:
63+
docker:
64+
- image: circleci/golang:1.10
65+
steps:
66+
- attach_workspace:
67+
at: ./artifacts
68+
- run:
69+
name: "Publish Release on GitHub"
70+
command: |
71+
go get -u github.com/tcnksm/ghr
72+
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete -prerelease ${CIRCLE_BRANCH} ./artifacts/
6273
6374
workflows:
6475
version: 2
@@ -71,3 +82,9 @@ workflows:
7182
filters:
7283
branches:
7384
only: master
85+
- publish-github-pre-release:
86+
requires:
87+
- build
88+
filters:
89+
branches:
90+
ignore: master

0 commit comments

Comments
 (0)