Skip to content

Commit faa635d

Browse files
authored
CI: Deploy documentation HTML ZIP archive and PDF file for dev versions (#3794)
1 parent a6736ce commit faa635d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci_docs.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,18 @@ jobs:
139139
- name: Build the PDF documentation
140140
run: make -C doc pdf
141141

142+
- name: Create the HTML ZIP archive and rename the PDF file
143+
run: |
144+
cd doc/_build/
145+
cp -r html/ pygmt-docs/
146+
zip -r pygmt-docs.zip pygmt-docs/
147+
mv latex/pygmt.pdf pygmt-docs.pdf
148+
cd ../..
149+
150+
- name: Copy the HTML ZIP archive and PDF to the html folder for dev version
151+
run: cp -v doc/_build/pygmt-docs.zip doc/_build/pygmt-docs.pdf doc/_build/html/
152+
if: github.event_name == 'push' && matrix.os == 'ubuntu-latest'
153+
142154
- name: Checkout the gh-pages branch
143155
uses: actions/[email protected]
144156
with:

0 commit comments

Comments
 (0)