From 48927c7fe86e4b80389bcdb5cd9962ee6a922bd1 Mon Sep 17 00:00:00 2001 From: Richard Webb Date: Wed, 21 Aug 2024 12:08:03 +0100 Subject: [PATCH] Try specifying the access token with x-access-token when pushing github pages (#2807) refs #2802 (comment) I don't have a means of testing this, it's just a guess based on some of the Github actions for pushing pages, e.g. https://github.com/peaceiris/actions-gh-pages/blob/0b7567fde6f7517edcc13d8ffa2d89cd8734d47c/src/set-tokens.ts#L100 https://github.com/EdricChan03/action-build-deploy-ghpages/blob/3183472d918d9ea82237bf4f2c416e5c8c13a394/entrypoint.sh#L32 --- build.fsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.fsx b/build.fsx index 6a1ad82bbad..e0fe6cb83fc 100644 --- a/build.fsx +++ b/build.fsx @@ -994,7 +994,7 @@ Target.create "DotNetPushToNuGet" (fun _ -> Target.create "ReleaseDocs" (fun _ -> Shell.cleanDir "gh-pages" - let auth = sprintf "%s:x-oauth-basic@" githubToken.Value + let auth = sprintf "x-access-token:%s@" githubToken.Value let url = sprintf "https://%sgithub.com/%s/%s.git" auth githubReleaseUser gitName Git.Repository.cloneSingleBranch "" url "gh-pages" "gh-pages"