From 1f1617ace4c3f5822f986e9a457b4d466f77168d Mon Sep 17 00:00:00 2001 From: Rizel Scarlett Date: Thu, 22 Jan 2026 13:54:11 -0500 Subject: [PATCH] fix(ci): temporarily skip gh-pages checkout to fix disk space issue The gh-pages branch has grown to ~7.4GB (large images duplicated across PR previews), causing 'No space left on device' errors during deploy. This temporarily disables the pr-preview preservation steps to unblock documentation deployments. PR previews will be lost but can be regenerated. TODO: Clean up gh-pages branch and re-enable these steps. --- .../workflows/deploy-docs-and-extensions.yml | 36 ++++++++++--------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/.github/workflows/deploy-docs-and-extensions.yml b/.github/workflows/deploy-docs-and-extensions.yml index ca0620ab4dc5..63810093dbd0 100644 --- a/.github/workflows/deploy-docs-and-extensions.yml +++ b/.github/workflows/deploy-docs-and-extensions.yml @@ -53,24 +53,26 @@ jobs: working-directory: ./documentation run: ./scripts/verify-build.sh - - name: Checkout gh-pages branch - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - continue-on-error: true # Branch may not exist on first deploy or in forks - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3 - with: - ref: gh-pages - path: gh-pages-current + # TODO: Re-enable after cleaning up gh-pages branch (currently ~7.4GB causing disk space issues) + # See: https://github.com/block/goose/issues/XXXX + # - name: Checkout gh-pages branch + # if: github.event_name == 'push' && github.ref == 'refs/heads/main' + # continue-on-error: true # Branch may not exist on first deploy or in forks + # uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3 + # with: + # ref: gh-pages + # path: gh-pages-current - - name: Preserve pr-preview directory - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - run: | - # Copy pr-preview from current gh-pages to the new build (if it exists) - if [ -d "gh-pages-current/pr-preview" ]; then - cp -r gh-pages-current/pr-preview documentation/build/pr-preview - echo "Preserved pr-preview directory with $(ls gh-pages-current/pr-preview | wc -l) PR previews" - else - echo "No pr-preview directory to preserve" - fi + # - name: Preserve pr-preview directory + # if: github.event_name == 'push' && github.ref == 'refs/heads/main' + # run: | + # # Copy pr-preview from current gh-pages to the new build (if it exists) + # if [ -d "gh-pages-current/pr-preview" ]; then + # cp -r gh-pages-current/pr-preview documentation/build/pr-preview + # echo "Preserved pr-preview directory with $(ls gh-pages-current/pr-preview | wc -l) PR previews" + # else + # echo "No pr-preview directory to preserve" + # fi - name: Deploy to /gh-pages if: github.event_name == 'push' && github.ref == 'refs/heads/main'