From d6f321ad3d6a1a4aed5d1c8462b71e73ca9e239e Mon Sep 17 00:00:00 2001 From: Kiyoon Kim Date: Thu, 1 Aug 2024 22:47:58 +0900 Subject: [PATCH] fix: mkdocs github pages needs to fetch the branch first --- .github/workflows/deploy-mkdocs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-mkdocs.yml b/.github/workflows/deploy-mkdocs.yml index bd5e997..8d6e048 100644 --- a/.github/workflows/deploy-mkdocs.yml +++ b/.github/workflows/deploy-mkdocs.yml @@ -58,6 +58,8 @@ jobs: if [[ -z "${{ inputs.gitlab-project }}" ]]; then # If the GitLab project name is not provided, we'll deploy to GitHub Pages. + git fetch origin gh-pages --depth=1 + if [ "${{ inputs.deploy-type }}" == "latest" ]; then out=$(mike deploy -p -u latest 2> stderr.txt) elif [ "${{ inputs.deploy-type }}" == "tag" ]; then