From 3d30b11de47a036390281a6ec9025b3dbb4d0e1b Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 5 Sep 2024 08:39:38 -0600 Subject: [PATCH] Do not keep gh-pages history Keeping the history of gh-pages adds a lot of bloat when trying to clone the repository. The force_orphan option added pushes just one commit with no prior history to the gh-pages branch on every change, which should significantly reduce the size of the repository. --- .github/workflows/deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 602e942a..d17c3c98 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,4 +29,5 @@ jobs: personal_token: ${{ secrets.RELEASE_TOKEN }} publish_branch: gh-pages publish_dir: ./book + force_orphan: true cname: 'tech-docs.system76.com'