From 97ad32d8b6c7b1fe70fe8d7961321476184cc8e3 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Tue, 5 Nov 2024 22:59:01 +0800 Subject: [PATCH] docs: Enable force_orphan to reduce clone size (#5289) --- .github/workflows/docs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2ca5beeabbf9..2fb8660c0fcb 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -631,6 +631,8 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: website/build publish_branch: gh-pages + # This allows us to make our publish branch with only the latest commit. + force_orphan: true - name: Clear build run: rm -rf ./website/build