Try pushing master builds to github as drafts
This commit is contained in:
parent
72ac3cb88c
commit
d13e0b79d4
@ -709,6 +709,23 @@ jobs:
|
||||
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} release_artifacts/
|
||||
create_draft_release:
|
||||
docker:
|
||||
- image: circleci/golang:1.12
|
||||
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=$(echo release_artifacts/*.tar.xz | sed -e 's/.*clementine-\(.*\).tar.xz/\1/')
|
||||
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -draft ${VERSION} release_artifacts/
|
||||
workflows:
|
||||
version: 2
|
||||
build_all:
|
||||
@ -778,6 +795,25 @@ workflows:
|
||||
- build_mingw
|
||||
- build_mac
|
||||
- build_source_tarball
|
||||
- create_draft_release:
|
||||
filters:
|
||||
branches:
|
||||
only: master
|
||||
tags:
|
||||
ignore: /.*/
|
||||
context: github
|
||||
requires:
|
||||
- build_eoan_64
|
||||
- build_eoan_32
|
||||
- build_bionic_64
|
||||
- build_bionic_32
|
||||
- build_buster_64
|
||||
- build_stretch_64
|
||||
- build_fedora_30_64
|
||||
- build_fedora_31_64
|
||||
- build_mingw
|
||||
- build_mac
|
||||
- build_source_tarball
|
||||
- upload_artifacts:
|
||||
context: gcp
|
||||
requires:
|
||||
|
Loading…
x
Reference in New Issue
Block a user