Skip to content

Commit eb0ebe7

Browse files
authored
CI: Upload the documentation PDF file as artifact for previewing (#3837)
1 parent 8623e3a commit eb0ebe7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci_docs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ jobs:
147147
mv latex/pygmt.pdf pygmt-docs.pdf
148148
cd ../..
149149
150+
- name: Upload PDF as artifact for previewing on pull requests
151+
uses: actions/[email protected]
152+
if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest'
153+
with:
154+
name: artifact-pygmt-docs-pdf
155+
path: doc/_build/pygmt-docs.pdf
156+
150157
- name: Copy the HTML ZIP archive and PDF to the html folder for dev version
151158
run: cp -v doc/_build/pygmt-docs.zip doc/_build/pygmt-docs.pdf doc/_build/html/
152159
if: github.event_name == 'push' && matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)