Skip to content

Commit 6dc04f4

Browse files
committed
Update build_docs.yml
1 parent 0f89cd8 commit 6dc04f4

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

.github/workflows/build_docs.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,20 @@
1-
name: CI
1+
name: Deploy Sphinx documentation to Pages
22

33
on:
44
push:
5-
branches:
5+
branches: # branch to trigger deployment
66
- main
77
- cy/docs-action
88

99
jobs:
10-
build:
11-
12-
runs-on: ubuntu-latest
13-
10+
pages:
11+
runs-on: ubuntu-20.04
1412
steps:
15-
- run: sudo apt-get update && sudo apt-get install libgl1
16-
- uses: actions/checkout@v3
17-
# Standard drop-in approach that should work for most people.
18-
- uses: ammaraskar/sphinx-action@master
13+
- id: deployment
14+
uses: sphinx-notes/pages@v3
1915
with:
20-
pre-build-command: "pip install -r requirements.txt napari-cellseg3d opencv-python-headless"
21-
docs-folder: "docs/"
22-
23-
- name: GitHub Pages action
24-
uses: peaceiris/[email protected]
16+
publish: false
17+
- uses: peaceiris/actions-gh-pages@v3
2518
with:
2619
github_token: ${{ secrets.GITHUB_TOKEN }}
27-
publish_dir: ./docs/_build/html
28-
20+
publish_dir: ${{ steps.deployment.outputs.artifact }}

0 commit comments

Comments
 (0)