Skip to content

Commit

Permalink
CI: Deploy documentation HTML ZIP archive and PDF file for dev versio…
Browse files Browse the repository at this point in the history
…ns (#3794)
  • Loading branch information
seisman authored Feb 18, 2025
1 parent a6736ce commit faa635d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,18 @@ jobs:
- name: Build the PDF documentation
run: make -C doc pdf

- name: Create the HTML ZIP archive and rename the PDF file
run: |
cd doc/_build/
cp -r html/ pygmt-docs/
zip -r pygmt-docs.zip pygmt-docs/
mv latex/pygmt.pdf pygmt-docs.pdf
cd ../..
- name: Copy the HTML ZIP archive and PDF to the html folder for dev version
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: Checkout the gh-pages branch
uses: actions/checkout@v4.2.2
with:
Expand Down

0 comments on commit faa635d

Please sign in to comment.