Skip to content

Commit 4fe223a

Browse files
committed
try to resolve pandoc issue
1 parent 874cd23 commit 4fe223a

File tree

1 file changed

+28
-24
lines changed

1 file changed

+28
-24
lines changed

.github/workflows/sphinx.yml

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,31 @@ jobs:
88
permissions:
99
contents: write
1010
steps:
11-
- uses: actions/checkout@v4
12-
- uses: conda-incubator/setup-miniconda@v3
13-
with:
14-
miniconda-version: "latest"
15-
channels: conda-forge, defaults
16-
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
17-
auto-update-conda: true
18-
activate-environment: dackar_libs
19-
auto-activate-base: false
20-
- name: Build HTML
21-
uses: ammaraskar/sphinx-action@master
22-
with:
23-
pre-build-command: conda install -c conda-forge pandoc python=3.11
24-
- name: Upload artifacts
25-
uses: actions/upload-artifact@v4
26-
with:
27-
name: html-docs
28-
path: docs/build/html/
29-
- name: Deploy
30-
uses: peaceiris/actions-gh-pages@v3
31-
if: github.ref == 'refs/heads/main'
32-
with:
33-
github_token: ${{ secrets.GITHUB_TOKEN }}
34-
publish_dir: docs/build/html
11+
- uses: actions/checkout@v4
12+
- uses: conda-incubator/setup-miniconda@v3
13+
with:
14+
miniconda-version: "latest"
15+
channels: conda-forge, defaults
16+
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
17+
auto-update-conda: true
18+
activate-environment: dackar_libs
19+
auto-activate-base: false
20+
- name: Use Pandoc
21+
uses: docker://pandoc/core:2.9
22+
with:
23+
args: "--help" # gets appended to pandoc command
24+
- name: Build HTML
25+
uses: ammaraskar/sphinx-action@master
26+
with:
27+
pre-build-command: "conda install -c conda-forge pandoc python=3.11"
28+
- name: Upload artifacts
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: html-docs
32+
path: docs/build/html/
33+
- name: Deploy
34+
uses: peaceiris/actions-gh-pages@v3
35+
if: github.ref == 'refs/heads/main'
36+
with:
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
publish_dir: docs/build/html

0 commit comments

Comments
 (0)