Skip to content

Commit

Permalink
Skip releases like good people do
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanilves committed Nov 9, 2017
1 parent 2b6b32d commit 6e29101
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,15 @@ validate-release:

deploy: validate-release
deploy: TAG=$(shell cat ./dist/release/TAG)
deploy: SKIP=$(shell git show | grep -i "Merge.*NORELEASE" >/dev/null && echo "true" || echo "false")
deploy: SKIP_RELEASE=$(shell git show | grep -i "Merge.*NORELEASE" >/dev/null && echo "true" || echo "false")
deploy:
test "${SKIP}" == "false" && test -n "${GITHUB_TOKEN}" && git tag ${TAG} && git push --tags
GITHUB_TOKEN=${GITHUB_TOKEN} ./scripts/github-create-release.sh ./dist/release
GITHUB_TOKEN=${GITHUB_TOKEN} ./scripts/github-upload-assets.sh ${TAG} ./dist/assets
if [[ "${SKIP_RELEASE}" == "false" ]]; then \
test -n "${GITHUB_TOKEN}" && git tag ${TAG} && git push --tags \
&& GITHUB_TOKEN=${GITHUB_TOKEN} ./scripts/github-create-release.sh ./dist/release \
&& GITHUB_TOKEN=${GITHUB_TOKEN} ./scripts/github-upload-assets.sh ${TAG} ./dist/assets; \
else \
echo "Release skipped! No problem, this is expected ;)"; \
fi

docker: DOCKER_REPO:=ivanilves/lstags
docker: RELEASE_TAG:=latest
Expand Down

0 comments on commit 6e29101

Please sign in to comment.