build: remove extraheader from git config

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
(cherry picked from commit de5777cde0)
This commit is contained in:
Alexander Trost authored and Travis Nielsen committed 2022-05-24 15:32:16 -06:00
1 parent 70a6e4350c
commit dc0b866eb0
1 file changed
+2
+2
View File
@@ -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)