1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00

Release docs as archive (#12253)

It is ok to use go modules at this point as release-source make target has already been run. Otherwise hugo fails to build. Example of failed build: https://drone.gitea.io/go-gitea/gitea/27976/5/3

Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
techknowlogick 2020-07-15 17:39:45 -04:00 committed by GitHub
parent fd9e8951d8
commit 6ea2701cd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -587,7 +587,7 @@ release-docs: | $(DIST_DIRS) docs
.PHONY: docs .PHONY: docs
docs: docs:
@hash hugo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ @hash hugo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
GO111MODULE=off $(GO) get -u github.com/gohugoio/hugo; \ $(GO) get -u github.com/gohugoio/hugo; \
fi fi
cd docs; make trans-copy clean build-offline; cd docs; make trans-copy clean build-offline;