From 5ffdcadfa9cac7853f629cccba436712f5105434 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Sun, 20 Sep 2026 14:03:35 +0800 Subject: [PATCH 1/2] CI: Deploy pre-built docs directly to ReadTheDocs for PR preview --- .github/workflows/ci_docs.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci_docs.yml b/.github/workflows/ci_docs.yml index 5cf865b8bbb..9f55711cc8c 100644 --- a/.github/workflows/ci_docs.yml +++ b/.github/workflows/ci_docs.yml @@ -173,6 +173,14 @@ jobs: mv latex/pygmt.pdf pygmt-docs.pdf cd ../.. + - name: Upload the documentation to ReadTheDocs for PR preview + uses: readthedocs/upload-action@f1f5bac5fc97073927100367d8a5bb22587e1e16 # main + if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && matrix.os == 'ubuntu-latest' + with: + token: ${{ secrets.READTHEDOCS_TOKEN }} + project-slug: pygmt-dev + html: doc/_build/html + - name: Upload PDF as artifact for previewing on pull requests uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' From 66450e294103b2e1e0e7f085b4924b33f6f2275b Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Mon, 21 Sep 2026 07:36:55 +0800 Subject: [PATCH 2/2] Fix step name [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com> --- .github/workflows/ci_docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_docs.yml b/.github/workflows/ci_docs.yml index 9f55711cc8c..b6edd354fb7 100644 --- a/.github/workflows/ci_docs.yml +++ b/.github/workflows/ci_docs.yml @@ -181,7 +181,7 @@ jobs: project-slug: pygmt-dev html: doc/_build/html - - name: Upload PDF as artifact for previewing on pull requests + - name: Upload PDF as artifact for PR preview uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' with: