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)