ci: fix gh docs action (#11547)
* ci: fix gh docs action * create cname after loop
This commit is contained in:
parent
5bde3686c4
commit
37a52afacd
|
@ -29,5 +29,5 @@ jobs:
|
|||
uses: JamesIves/github-pages-deploy-action@v4.3.0
|
||||
with:
|
||||
branch: gh-pages
|
||||
folder: docs/output
|
||||
folder: ~/output
|
||||
single-commit: true
|
||||
|
|
|
@ -14,7 +14,6 @@ private
|
|||
# Build
|
||||
vendor
|
||||
build
|
||||
docs/output
|
||||
docs/_build
|
||||
docs/tutorial
|
||||
docs/node_modules
|
||||
|
|
8
Makefile
8
Makefile
|
@ -14,6 +14,7 @@ HTTPS_GIT := https://github.com/cosmos/cosmos-sdk.git
|
|||
DOCKER := $(shell which docker)
|
||||
DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf:1.0.0-rc8
|
||||
PROJECT_NAME = $(shell git remote get-url origin | xargs basename -s .git)
|
||||
DOCS_DOMAIN=docs.cosmos.network
|
||||
# RocksDB is a native dependency, so we don't assume the library is installed.
|
||||
# Instead, it must be explicitly enabled and we warn when it is not.
|
||||
ENABLE_ROCKSDB ?= false
|
||||
|
@ -198,10 +199,11 @@ build-docs:
|
|||
while read -r branch path_prefix; do \
|
||||
echo "building branch $${branch}" ; \
|
||||
(git clean -fdx && git reset --hard && git checkout $${branch} && npm install && VUEPRESS_BASE="/$${path_prefix}/" npm run build) ; \
|
||||
mkdir -p output/$${path_prefix} ; \
|
||||
cp -r .vuepress/dist/* output/$${path_prefix}/ ; \
|
||||
cp output/$${path_prefix}/index.html output ; \
|
||||
mkdir -p ~/output/$${path_prefix} ; \
|
||||
cp -r .vuepress/dist/* ~/output/$${path_prefix}/ ; \
|
||||
cp ~/output/$${path_prefix}/index.html ~/output ; \
|
||||
done < versions ;
|
||||
@echo $(DOCS_DOMAIN) > ~/output/CNAME
|
||||
|
||||
.PHONY: build-docs
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
docs.cosmos.network
|
Loading…
Reference in New Issue