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

Commit

Permalink
Also upload build files of feature branches as pre-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
pudelkoM authored Oct 5, 2019
1 parent 3db592f commit 4666318
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ jobs:
go get -u github.com/tcnksm/ghr
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete r${CIRCLE_BUILD_NUM} ./artifacts/
publish-github-pre-release:
docker:
- image: circleci/golang:1.10
steps:
- attach_workspace:
at: ./artifacts
- run:
name: "Publish Release on GitHub"
command: |
go get -u github.com/tcnksm/ghr
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete -prerelease ${CIRCLE_BRANCH} ./artifacts/
workflows:
version: 2
Expand All @@ -71,3 +82,9 @@ workflows:
filters:
branches:
only: master
- publish-github-pre-release:
requires:
- build
filters:
branches:
ignore: master

0 comments on commit 4666318

Please sign in to comment.