diff --git a/.github/workflows/ci_docs.yml b/.github/workflows/ci_docs.yml index 302e9360400..5cb1a2c9745 100644 --- a/.github/workflows/ci_docs.yml +++ b/.github/workflows/ci_docs.yml @@ -151,6 +151,12 @@ jobs: run: cp -v doc/_build/pygmt-docs.zip doc/_build/pygmt-docs.pdf doc/_build/html/ if: github.event_name == 'push' && matrix.os == 'ubuntu-latest' + - name: Upload the HTML ZIP archive and PDF as release assets + run: gh release upload ${{ github.ref_name }} doc/_build/pygmt-docs.zip doc/_build/pygmt-docs.pdf + if: github.event_name == 'release' && matrix.os == 'ubuntu-latest' + env: + GH_TOKEN: ${{ github.token }} + - name: Checkout the gh-pages branch uses: actions/checkout@v4.2.2 with: