-
Notifications
You must be signed in to change notification settings - Fork 20
43 lines (36 loc) · 1.17 KB
/
protocol_docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Deploy protocol docs
on:
push:
branches:
- main
jobs:
publish:
name: 'Publish'
runs-on: ubuntu-latest
# Avoid running this workflow for forks:
if: "github.repository == 'data-apis/dataframe-api'"
steps:
- name: 'Checkout repository'
uses: actions/checkout@v3
- name: 'Install Python'
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: 'Install dependencies'
run: pip install -r ./requirements.txt
- name: 'Build documentation'
run: |
# Turn warnings into errors and ensure .doctrees is not deployed:
mkdir site
sphinx-build -b html -WT --keep-going protocol/ site/latest -d doctrees
touch site/.nojekyll
- name: 'Deploy'
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
personal_token: ${{ secrets.ACTIONS_DEPLOY_TOKEN }}
external_repository: data-apis/dataframe-protocol
publish_branch: main
publish_dir: ./site
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'