Skip to content

Commit

Permalink
docs: modify git fetch-depth for docs ci (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylesomers authored Jun 25, 2024
1 parent b67f890 commit a7dbf20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
with:
fetch-depth: 0
fetch-depth: 1
ref: ${{ inputs.git_ref }}
- name: Git client setup
run: |
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ docs-build: ## Build the docs using docker. Example: `make docs-build VERSION=v1
docker build -f ./docs/Dockerfile -t docs:$(VERSION) . \
--build-arg GIT_USER_NAME="$(GIT_USER_NAME)" \
--build-arg GIT_USER_EMAIL="$(GIT_USER_EMAIL)" \
--build-arg GITHUB_ACTIONS="$(GITHUB_ACTIONS)" \
--build-arg GITHUB_ACTIONS="$(GITHUB_ACTIONS)"
--no-cache

.PHONY: docs-deploy
Expand All @@ -38,7 +38,7 @@ docs-deploy: ## Build and deploy the docs using 'mike'. Example: `make docs-depl
docker build -f ./docs/Dockerfile -t docs:$(VERSION) . \
--build-arg GIT_USER_NAME="$(GIT_USER_NAME)" \
--build-arg GIT_USER_EMAIL="$(GIT_USER_EMAIL)" \
--build-arg GITHUB_ACTIONS="$(GITHUB_ACTIONS)" \
--build-arg GITHUB_ACTIONS="$(GITHUB_ACTIONS)"
--no-cache
docker run -t docs:$(VERSION) mike deploy $(VERSION) ${ALIAS} --update-aliases
docker run -t docs:$(VERSION) mike set-default $(ALIAS) --push --allow-empty
Expand Down

0 comments on commit a7dbf20

Please sign in to comment.