From 5507a642ba8b7cdd158e3f775860239d2327fa3c Mon Sep 17 00:00:00 2001 From: Harshal Sheth Date: Wed, 15 Jan 2025 14:24:45 -0800 Subject: [PATCH 1/2] chore(ci): truncate gh-pages branch history This should significantly reduce the size of our git repo. --- .github/workflows/documentation.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index e6044badb1b41c..50a5896bd30273 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -57,8 +57,12 @@ jobs: - name: Deploy if: github.event_name == 'push' && github.repository == 'datahub-project/datahub' - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./docs-website/build cname: datahubproject.io + # The gh-pages branch stores the built docs site. We don't need to preserve + # the full history of the .html files, since they're generated from our + # source files. Doing so significantly reduces the size of the repo's .git dir. + force_orphan: true From 355a2248e0ec4487002c70d5036fbb7a0550cffe Mon Sep 17 00:00:00 2001 From: Harshal Sheth Date: Wed, 15 Jan 2025 14:50:18 -0800 Subject: [PATCH 2/2] Update documentation.yml --- .github/workflows/documentation.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 50a5896bd30273..f38133b1c0ad26 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -5,6 +5,7 @@ on: branches: - "**" paths: + - ".github/workflows/documentation.yml" - "metadata-ingestion/**" - "metadata-models/**" - "docs/**" @@ -13,6 +14,7 @@ on: branches: - master paths: + - ".github/workflows/documentation.yml" - "metadata-ingestion/**" - "metadata-models/**" - "docs/**"