Skip to content

Commit d600fdc

Browse files
committed
Add "make archive" and switch from -rc to -beta
* need to create our own tarballs because shasums of default git tarballs change
1 parent 9311ebf commit d600fdc

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,20 @@ bundle-darwin: binary-darwin
7070
.PHONY: binary-linux binary-darwin bundle-linux bundle-darwin
7171

7272
#################################################
73-
# Targets for creating OS specific artifacts
73+
# Targets for creating OS specific artifacts and archives
7474
#################################################
7575

7676
artifacts-linux-tag: bundle-linux debian
7777

7878
artifacts-darwin-tag: bundle-darwin
7979

80-
artifacts-tag: artifacts-linux-tag artifacts-darwin-tag
80+
artifacts-archive-tag:
81+
$Q mkdir -p $(RELEASE)
82+
$Q git archive v$(VERSION) | gzip > $(RELEASE)/step-cli.tar.gz
8183

82-
.PHONY: artifacts-linux-tag artifacts-darwin-tag artifacts-tag
84+
artifacts-tag: artifacts-linux-tag artifacts-darwin-tag artifacts-archive-tag
85+
86+
.PHONY: artifacts-linux-tag artifacts-darwin-tag artifacts-archive-tag artifacts-tag
8387

8488
#################################################
8589
# Targets for creating step artifacts

make/common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $(foreach pkg,$(BOOTSTRAP),$(eval $(call VENDOR_BIN_TMPL,$(pkg))))
4848
# Version flags to embed in the binaries
4949
VERSION ?= $(shell [ -d .git ] && git describe --tags --always --dirty="-dev")
5050
VERSION := $(shell echo $(VERSION) | sed 's/^v//')
51-
NOT_RC := $(shell echo $(VERSION) | grep -v -e -rc)
51+
NOT_RC := $(shell echo $(VERSION) | grep -v -e -beta)
5252

5353
# If TRAVIS_TAG is set then we know this ref has been tagged.
5454
ifdef TRAVIS_TAG

0 commit comments

Comments
 (0)