Skip to content

Commit e126cce

Browse files
committed
try NI action
1 parent 496aaa6 commit e126cce

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

.github/workflows/docs.yml

+5-14
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,14 @@ jobs:
3434
- name: Upload artifact
3535
uses: actions/upload-artifact@v3
3636
with:
37-
name: docs
38-
path: docs/_build
37+
name: docs-build
38+
path: docs/build
3939

4040
upload-docs:
4141
name: Upload docs to GitHub pages
4242
runs-on: ubuntu-latest
4343
needs: build-docs
4444
steps:
45-
46-
- uses: actions/checkout@v3
47-
- uses: actions/download-artifact@v3
48-
with:
49-
name: docs
50-
- name: Push to GitHub pages
51-
uses: peaceiris/actions-gh-pages@v3
52-
with:
53-
github_token: ${{ secrets.GITHUB_TOKEN }}
54-
publish_dir: ./docs/_build/html
55-
destination_dir: dev
56-
publish_branch: gh-pages-test
45+
- uses: neuroinformatics-unit/actions/deploy_sphinx_docs@v2
46+
with:
47+
secret_input: ${{ secrets.GITHUB_TOKEN }}

docs/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
SPHINXOPTS ?= -W --keep-going
77
SPHINXBUILD ?= sphinx-build
88
SOURCEDIR = .
9-
BUILDDIR = _build
9+
BUILDDIR = build
1010

1111
# Put it first so that "make" without argument is like "make help".
1212
help:

0 commit comments

Comments
 (0)