Skip to content

Commit 00496d6

Browse files
authored
CI: Upload documentation HTML ZIP archive and PDF file as release assets (#3814)
1 parent af643dd commit 00496d6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci_docs.yml

+6
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ jobs:
151151
run: cp -v doc/_build/pygmt-docs.zip doc/_build/pygmt-docs.pdf doc/_build/html/
152152
if: github.event_name == 'push' && matrix.os == 'ubuntu-latest'
153153

154+
- name: Upload the HTML ZIP archive and PDF as release assets
155+
run: gh release upload ${{ github.ref_name }} doc/_build/pygmt-docs.zip doc/_build/pygmt-docs.pdf
156+
if: github.event_name == 'release' && matrix.os == 'ubuntu-latest'
157+
env:
158+
GH_TOKEN: ${{ github.token }}
159+
154160
- name: Checkout the gh-pages branch
155161
uses: actions/[email protected]
156162
with:

0 commit comments

Comments
 (0)