From 6a17eec09c79be222ca342195dbd5e7053cf3de9 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Wed, 21 Jun 2023 11:21:59 +0200 Subject: [PATCH] ci: fetching the `gh-pages` branch added to the documentation GitHub Action --- .github/workflows/documentation.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index ca8fa0a6..dd8b721c 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -47,10 +47,11 @@ jobs: - name: Installing pip packages run: | pip install conan mkdocs-material mike - - name: Setup git configuration + - name: Prepare git run: | git config --global user.name github-actions git config --global user.email github-actions@github.com + git fetch origin gh-pages --depth=1 - name: Building docs run: | mike deploy --push --update-aliases `conan inspect . | sed -n -r 's/version: ([0-9]+.[0-9]+).[0-9]+/\1/p'` latest