ci: fix gh docs action (#11547)

* ci: fix gh docs action

* create cname after loop
This commit is contained in:
Julien Robert 2022-04-05 15:04:15 +02:00 committed by GitHub
parent 5bde3686c4
commit 37a52afacd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -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

1
.gitignore vendored
View File

@ -14,7 +14,6 @@ private
# Build
vendor
build
docs/output
docs/_build
docs/tutorial
docs/node_modules

View File

@ -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

View File

@ -1 +0,0 @@
docs.cosmos.network