mirror of
https://github.com/strongdm/comply
synced 2025-02-22 10:44:44 +00:00
make GH_LOGIN validation common to all release entrypoints
This commit is contained in:
parent
8182b587a5
commit
e53e8ed03d
8
Makefile
8
Makefile
@ -59,10 +59,12 @@ cleanse:
|
|||||||
git push -f origin master
|
git push -f origin master
|
||||||
git gc --aggressive --prune=all
|
git gc --aggressive --prune=all
|
||||||
|
|
||||||
release: dist release-deps
|
release-env:
|
||||||
ifndef GH_LOGIN
|
ifndef GH_LOGIN
|
||||||
$(error GH_LOGIN must be set to a valid GitHub token)
|
$(error GH_LOGIN must be set to a valid GitHub token)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
release: release-env dist release-deps
|
||||||
$(eval VERSION := $(shell git describe --tags --always --dirty="-dev"))
|
$(eval VERSION := $(shell git describe --tags --always --dirty="-dev"))
|
||||||
github-release release \
|
github-release release \
|
||||||
--security-token $$GH_LOGIN \
|
--security-token $$GH_LOGIN \
|
||||||
@ -87,9 +89,9 @@ endif
|
|||||||
--name comply-$(VERSION)-linux-amd64.tgz \
|
--name comply-$(VERSION)-linux-amd64.tgz \
|
||||||
--file dist/comply-$(VERSION)-linux-amd64.tgz
|
--file dist/comply-$(VERSION)-linux-amd64.tgz
|
||||||
|
|
||||||
patch-release: patch release
|
patch-release: release-env patch release
|
||||||
|
|
||||||
minor-release: minor release
|
minor-release: release-env minor release
|
||||||
|
|
||||||
patch: clean gitsem
|
patch: clean gitsem
|
||||||
gitsem -m "increment patch for release" patch
|
gitsem -m "increment patch for release" patch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user