Skip to content

Commit

Permalink
CI: Automatically upload docs on release (#48211)
Browse files Browse the repository at this point in the history
  • Loading branch information
datapythonista committed Aug 23, 2022
1 parent f6e9b1a commit 3b901a4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/docbuild-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- main
- 1.4.x
tags:
- '*'
pull_request:
branches:
- main
Expand Down Expand Up @@ -49,6 +51,9 @@ jobs:
- name: Build documentation
run: doc/make.py --warnings-are-errors

- name: Build documentation zip
run: doc/make.py zip_html

- name: Build the interactive terminal
run: |
cd web/interactive_terminal
Expand All @@ -73,6 +78,10 @@ jobs:
run: rsync -az --delete doc/build/html/ docs@${{ secrets.server_ip }}:/usr/share/nginx/pandas/pandas-docs/dev
if: github.event_name == 'push' && github.ref == 'refs/heads/main'

- name: Upload prod docs
run: rsync -az --delete doc/build/html/ docs@${{ secrets.server_ip }}:/usr/share/nginx/pandas/pandas-docs/version/${GITHUB_REF_NAME}
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')

- name: Move docs into site directory
run: mv doc/build/html web/build/docs

Expand Down

0 comments on commit 3b901a4

Please sign in to comment.