Skip to content

Commit 701045e

Browse files
committed
Update pages.yml workflow
1 parent 0a0299f commit 701045e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/pages.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,14 @@ jobs:
7777
- name: 'Install dependencies'
7878
run: |
7979
pip install -r ./requirements.txt
80+
pip install .
8081
8182
# Generate the documentation:
8283
- name: 'Build documentation'
8384
run: |
8485
# Turn warnings into errors and ensure .doctrees is not deployed:
85-
sphinx-build -b html -WT --keep-going spec build/draft -d doctrees
86+
export SPHINXOPTS="-b html -WT --keep-going -d doctrees"
87+
make -C spec/ build
8688
8789
# Upload the build artifact:
8890
- name: 'Upload build artifact'
@@ -107,10 +109,9 @@ jobs:
107109
git checkout gh-pages
108110
timeout-minutes: 5
109111

110-
# Copy build artifact:
111-
- name: 'Copy build artifact'
112+
- name: 'Copy build to root'
112113
run: |
113-
rm -rf ./draft && cp -R ./build/draft ./draft
114+
cp -R ./spec/_build/* .
114115
timeout-minutes: 10
115116

116117
# Commit changes to:

0 commit comments

Comments
 (0)