Skip to content

Commit

Permalink
CI: Upload documentation HTML ZIP archive and PDF file as release ass…
Browse files Browse the repository at this point in the history
…ets (#3814)
  • Loading branch information
seisman authored Feb 19, 2025
1 parent af643dd commit 00496d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 00496d6

Please sign in to comment.