From dc0b866eb082404dbc41cae9350fc8c2caa40509 Mon Sep 17 00:00:00 2001 From: Alexander Trost Date: Tue, 24 May 2022 19:40:29 +0200 Subject: [PATCH] build: remove extraheader from git config Signed-off-by: Alexander Trost (cherry picked from commit de5777cde013434609f5dbde75fd3d470ead90ad) --- build/release/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/release/Makefile b/build/release/Makefile index f27b999ac..50b370414 100644 --- a/build/release/Makefile +++ b/build/release/Makefile @@ -136,6 +136,8 @@ build.docs: publish.docs: if ! git remote show docs > /dev/null 2>&1; then git remote add docs $(DOCS_GIT_REPO); fi + # If we are running in GitHub actions, remove the extraheader so our custom GitHub API token is used + if test "$$GITHUB_ACTIONS" = "true"; then git config --unset 'http.https://github.com/.extraheader'; fi git fetch -u docs gh-pages # Switch to root of repo and then run the build and deploy of the documentation cd $(ROOT_DIR) && mike deploy --remote docs --push --rebase --branch gh-pages --update-aliases --prefix $(DOCS_PREFIX) $(DOCS_VERSION) $(DOCS_VERSION_ALIAS)