Skip to content

Commit

Permalink
Merge pull request #24 from travisn/master-docs-latest
Browse files Browse the repository at this point in the history
docs: Publish master docs to latest path
  • Loading branch information
travisn authored Sep 14, 2021
2 parents 69ea431 + 0cb929e commit f8b89c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/release/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ ifneq ($(TAG_WITH_SUFFIX),true)
override VERSION := $(shell echo "$(VERSION)" | sed -e 's/-alpha.0//' -e 's/-beta.0//' -e 's/-rc.0//')
endif

ifeq ($(shell echo $(BRANCH_NAME)),master)
DOCS_VERSION := latest
else
DOCS_VERSION := $(shell echo $(BRANCH_NAME) | sed -E "s/^release\-([0-9]+)\.([0-9]+)$$/v\1.\2/g")
endif
DOCS_DIR ?= $(ROOT_DIR)/Documentation
DOCS_WORK_DIR := $(WORK_DIR)/rook.github.io
DOCS_VERSION_DIR := $(DOCS_WORK_DIR)/docs/nfs/$(DOCS_VERSION)
Expand Down

0 comments on commit f8b89c8

Please sign in to comment.