Skip to content

Commit

Permalink
make: add release-sources #10295 (#10298)
Browse files Browse the repository at this point in the history
* make: add release-sources

* make: release-sources exclude .git and make_evidence

* fix: skip exclude MAKE_EVIDENCE_DIR not present in 1.11
  • Loading branch information
sapk authored Feb 16, 2020
1 parent f9e66e5 commit eb064df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ $(EXECUTABLE): $(GO_SOURCES)
GO111MODULE=on $(GO) build -mod=vendor $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@

.PHONY: release
release: generate release-dirs release-windows release-linux release-darwin release-copy release-compress release-check
release: generate release-dirs release-windows release-linux release-darwin release-copy release-compress release-sources release-check

.PHONY: release-dirs
release-dirs:
Expand Down Expand Up @@ -471,6 +471,10 @@ release-compress:
fi
cd $(DIST)/release/; for file in `find . -type f -name "*"`; do echo "compressing $${file}" && gxz -k -9 $${file}; done;

.PHONY: release-sources
release-sources:
tar cvzf $(DIST)/release/gitea-src-$(VERSION).tar.gz --exclude $(DIST) --exclude .git .

node_modules: package-lock.json
npm install --no-save

Expand Down

0 comments on commit eb064df

Please sign in to comment.