chore: add release workflow
This commit is contained in:
parent
3021ab8896
commit
c0cbb5d6c3
3 changed files with 48 additions and 8 deletions
11
Makefile
11
Makefile
|
@ -71,13 +71,16 @@ dist: dist-target
|
|||
|
||||
.PHONY: dist-all
|
||||
dist-all: dist-source
|
||||
@for target in $(TARGETS); do \
|
||||
@set -eu -o pipefail; \
|
||||
for target in $(TARGETS); do \
|
||||
$(MAKE) dist-target GOOS=`echo $$target | cut -d / -f 1` GOARCH=`echo $$target | cut -d / -f 2`; \
|
||||
done
|
||||
done; \
|
||||
mkdir -p $(DISTDIR)/release; \
|
||||
mv $(DISTDIR)/$(BINNAME)-$(BINARY_VERSION)-*.tar.xz $(DISTDIR)/release
|
||||
|
||||
.PHONY: dist-source
|
||||
dist-source:
|
||||
@set -e; \
|
||||
@set -eu -o pipefail; \
|
||||
if [ -z "$(BINARY_VERSION)" ]; then \
|
||||
echo "No version set"; \
|
||||
exit 1; \
|
||||
|
@ -98,7 +101,7 @@ dist-source:
|
|||
|
||||
.PHONY: dist-target
|
||||
dist-target: build-target
|
||||
@set -e; \
|
||||
@set -eu -o pipefail; \
|
||||
if [ -z "$(BINARY_VERSION)" ]; then \
|
||||
echo "No version set"; \
|
||||
exit 1; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue