File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,24 +4,14 @@ permissions:
44 contents : write
55
66on :
7- workflow_run :
8- workflows : [Python Tests]
9- types :
10- - completed
11- branches :
12- - main
13- - feature/issue-218/sphinx
147 push :
158 branches :
169 - feature/issue-218/sphinx
10+ - main
1711 workflow_dispatch :
1812
1913jobs :
2014 build-and-publish-docs :
21- if : >
22- (github.event_name == 'workflow_run' &&
23- github.event.workflow_run.conclusion == 'success') ||
24- (github.event_name != 'workflow_run')
2515 runs-on : ubuntu-latest
2616 steps :
2717 - uses : actions/checkout@v4
@@ -39,12 +29,14 @@ jobs:
3929 poetry install --with docs
4030
4131 - name : Build Sphinx docs
32+ working-directory : docs
4233 run : |
43- cd docs
4434 poetry run make html
4535 touch build/html/.nojekyll
36+ ls -la build/html | sed 's/^/BUILD: /' # sanity check in logs
4637
47- - uses : JamesIves/github-pages-deploy-action@v4
38+ - name : Deploy to gh-pages
39+ uses : JamesIves/github-pages-deploy-action@v4
4840 with :
4941 branch : gh-pages
5042 folder : docs/build/html
You can’t perform that action at this time.
0 commit comments