Skip to content

Commit 658cc67

Browse files
committed
minimal actions, build on push
1 parent b188b09 commit 658cc67

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

.github/workflows/docs.yaml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,14 @@ permissions:
44
contents: write
55

66
on:
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

1913
jobs:
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

0 commit comments

Comments
 (0)