Skip to content

Commit

Permalink
ci: always flag releases as drafts and pre-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
eysi09 authored and edvald committed Jul 16, 2019
1 parent 629c073 commit eaefab0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -321,21 +321,21 @@ jobs:
- checkout
- *attach-workspace
- run:
# Note that we currently flag all releases as drafts and pre-releases. This is because of an issue with lerna that prevents us from creating actual pre-releases. See https://github.com/garden-io/garden/issues/972.
# Once the issue is resolved, we should add -prerelease flag to pre-releases and -draft flag
# to normal releases.
name: Create a release on GitHub. If the release is a pre-release we publish it right away, otherwise we make a draft.
command: |
VERSION="v$(cat garden-service/package.json | jq -r .version)"
PRERELEASE=""
DRAFT=""
if [[ $VERSION == *"-"* ]]; then DRAFT=-draft; PRERELEASE=-prerelease; fi
ghr \
-t ${GITHUB_TOKEN} \
-u ${CIRCLE_PROJECT_USERNAME} \
-r ${CIRCLE_PROJECT_REPONAME} \
-c ${CIRCLE_SHA1} \
-n ${VERSION} \
-delete \
${DRAFT} \
${PRERELEASE} \
-prerelease \
-draft \
${VERSION} ./garden-service/dist
release-service-dist-next:
<<: *release-config
Expand Down

0 comments on commit eaefab0

Please sign in to comment.