Skip to content

Commit

Permalink
ci: fix gh docs action (cosmos#11547)
Browse files Browse the repository at this point in the history
* ci: fix gh docs action

* create cname after loop
  • Loading branch information
julienrbrt authored Apr 5, 2022
1 parent 5bde368 commit 37a52af
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ jobs:
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/output
folder: ~/output
single-commit: true
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ private
# Build
vendor
build
docs/output
docs/_build
docs/tutorial
docs/node_modules
Expand Down
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion docs/output/CNAME

This file was deleted.

0 comments on commit 37a52af

Please sign in to comment.