Skip to content

Commit 76599c3

Browse files
committed
Update to sphinx.yml
Now triggers on pushes to the documentation-staging branch and deploys to the gh-pages branch.
1 parent cd04dcf commit 76599c3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/sphinx.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- main
7-
- gh-pages
7+
- documentation-staging
88
workflow_dispatch:
99

1010
jobs:
@@ -18,8 +18,7 @@ jobs:
1818

1919
- name: Build HTML
2020
run: python -m sphinx.cmd.build -M html docs/source docs/build
21-
# - name: Build HTML
22-
# uses: ammaraskar/sphinx-action@master
21+
2322
- name: Upload artifacts
2423
uses: actions/upload-artifact@v4
2524
with:
@@ -32,8 +31,8 @@ jobs:
3231
# publish: true
3332

3433
- name: Deploy
35-
if: github.ref != 'refs/heads/gh-pages'
3634
uses: peaceiris/actions-gh-pages@v3
3735
with:
3836
github_token: ${{ secrets.DOCSITE_TOKEN }}
37+
publish_branch: gh-pages
3938
publish_dir: docs/build/html

docs/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ sphinx-design
44
nbsphinx
55
sphinx_tabs
66
numpy
7+
pandas
8+
requests
9+
scikit-learn
10+
pyyaml

0 commit comments

Comments
 (0)