Skip to content

Commit 3b901a4

Browse files
CI: Automatically upload docs on release (#48211)
1 parent f6e9b1a commit 3b901a4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/docbuild-and-upload.yml

+9
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- main
77
- 1.4.x
8+
tags:
9+
- '*'
810
pull_request:
911
branches:
1012
- main
@@ -49,6 +51,9 @@ jobs:
4951
- name: Build documentation
5052
run: doc/make.py --warnings-are-errors
5153

54+
- name: Build documentation zip
55+
run: doc/make.py zip_html
56+
5257
- name: Build the interactive terminal
5358
run: |
5459
cd web/interactive_terminal
@@ -73,6 +78,10 @@ jobs:
7378
run: rsync -az --delete doc/build/html/ docs@${{ secrets.server_ip }}:/usr/share/nginx/pandas/pandas-docs/dev
7479
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
7580

81+
- name: Upload prod docs
82+
run: rsync -az --delete doc/build/html/ docs@${{ secrets.server_ip }}:/usr/share/nginx/pandas/pandas-docs/version/${GITHUB_REF_NAME}
83+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
84+
7685
- name: Move docs into site directory
7786
run: mv doc/build/html web/build/docs
7887

0 commit comments

Comments
 (0)