Skip to content

Commit 9c39063

Browse files
committed
build(publish-docs): Use sphinx
1 parent 9855315 commit 9c39063

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
run: poetry install
6565

6666
- name: Build documentation
67-
run: poetry run mkdocs build
67+
run: pushd docs; make SPHINXBUILD='poetry run sphinx-build' build; popd
6868

6969
- name: Push documentation to S3
7070
uses: jakejarvis/s3-sync-action@master
@@ -75,11 +75,11 @@ jobs:
7575
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
7676
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
7777
AWS_REGION: 'us-west-1' # optional: defaults to us-east-1
78-
SOURCE_DIR: 'site' # optional: defaults to entire repository
78+
SOURCE_DIR: '_build/html' # optional: defaults to entire repository
7979

8080
- name: Generate list of changed files for CloudFront to invalidate
8181
run: |
82-
pushd site; FILES=$(find . -name \* -print | grep html | cut -c2- | sort | uniq | tr '\n' ' '); popd
82+
pushd _build/html; FILES=$(find . -name \* -print | grep html | cut -c2- | sort | uniq | tr '\n' ' '); popd
8383
for file in $FILES; do
8484
echo $file
8585
# add bare directory to list of updated paths when we see index.html

0 commit comments

Comments
 (0)