From e4110dfeb2124af4b805348bbad82f97ca636c28 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sat, 23 May 2026 07:17:01 +1000 Subject: [PATCH 1/5] [CI] Remove redundant `mkdocs build` command from docs build --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 29764f8364b..ada62e60624 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -107,7 +107,7 @@ jobs: cp -r python/sedona/doc/_build/html/* docs/api/pydocs/ - run: git config --global user.name = "GitHub Action" - run: git config --global user.email = "test@abc.com" - - run: uv run mkdocs build + - run: mkdir site - name: Deploy the doc to the website branch if: ${{ github.event_name != 'pull_request' && github.repository == 'apache/sedona' }} run: | From bbf09653d3600a39ca0074dcfeb4d2838eeeed2d Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sat, 23 May 2026 07:37:46 +1000 Subject: [PATCH 2/5] Update .github/workflows/docs.yml --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ada62e60624..86e56a80607 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -120,7 +120,7 @@ jobs: uv run mike deploy --update-aliases "$version" latest -b website -p fi - run: mkdir staging - - run: cp -r site/* staging/ + - run: cp -r site staging/ - uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 with: name: generated-docs From 7cdb81a6a50f843c6ab810542e4573e1191be08c Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sat, 23 May 2026 07:42:09 +1000 Subject: [PATCH 3/5] Fixup --- .github/workflows/docs.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 86e56a80607..89fade63550 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -119,8 +119,7 @@ jobs: version="${GITHUB_REF##*/branch-}" uv run mike deploy --update-aliases "$version" latest -b website -p fi - - run: mkdir staging - - run: cp -r site staging/ + - run: cp -r site staging - uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 with: name: generated-docs From 37b4543cd927ca22a026b787958bfcb5298ae00d Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sat, 23 May 2026 08:11:47 +1000 Subject: [PATCH 4/5] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/docs.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 89fade63550..ae2d0b60055 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -107,7 +107,9 @@ jobs: cp -r python/sedona/doc/_build/html/* docs/api/pydocs/ - run: git config --global user.name = "GitHub Action" - run: git config --global user.email = "test@abc.com" - - run: mkdir site + - name: Build the doc site for pull requests + if: ${{ github.event_name == 'pull_request' }} + run: uv run mkdocs build - name: Deploy the doc to the website branch if: ${{ github.event_name != 'pull_request' && github.repository == 'apache/sedona' }} run: | From eb5195a6b9900beceedebcaeabea9921b5c5d0ee Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sat, 23 May 2026 08:48:38 +1000 Subject: [PATCH 5/5] Update .github/workflows/docs.yml --- .github/workflows/docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ae2d0b60055..6a089ae381e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -107,8 +107,8 @@ jobs: cp -r python/sedona/doc/_build/html/* docs/api/pydocs/ - run: git config --global user.name = "GitHub Action" - run: git config --global user.email = "test@abc.com" - - name: Build the doc site for pull requests - if: ${{ github.event_name == 'pull_request' }} + - name: Build the doc site (PRs and personal forks) + if: ${{ github.event_name == 'pull_request' || github.repository != 'apache/sedona' }} run: uv run mkdocs build - name: Deploy the doc to the website branch if: ${{ github.event_name != 'pull_request' && github.repository == 'apache/sedona' }}