Skip to content

Commit e0e5336

Browse files
author
Alexander Batashev
authored
[CI] Fix documentation build (#5160)
Also enable documentation builds (without deployment) in pre-commit to avoid this kind of situation in the future.
1 parent 8a3bd1c commit e0e5336

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/gh_pages.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ name: Generate Doxygen documentation
33
on:
44
schedule:
55
- cron: 0 1 * * *
6+
pull_request:
7+
branches:
8+
- sycl
9+
paths:
10+
- '.github/workflows/gh_pages.yml'
11+
- 'clang/docs/**'
12+
- 'sycl/docs/**'
613

714
jobs:
815
build:
@@ -16,7 +23,7 @@ jobs:
1623
- name: Install deps
1724
run: |
1825
sudo apt-get install -y doxygen graphviz ssh ninja-build
19-
sudo pip3 install 'sphinx==4.1.2' 'myst-parser==0.15.1'
26+
sudo pip3 install 'sphinx==4.1.2' 'myst-parser==0.15.1' 'recommonmark==0.7.1'
2027
- name: Build Docs
2128
run: |
2229
mkdir -p $GITHUB_WORKSPACE/build
@@ -28,6 +35,7 @@ jobs:
2835
cmake --build . --target docs-sycl-html
2936
cmake --build . --target docs-clang-html
3037
- name: Deploy
38+
if: ${{ github.event_name == 'schedule' }}
3139
env:
3240
SSH_KEY: ${{secrets.ACTIONS_DEPLOY_KEY}}
3341
run: |

0 commit comments

Comments
 (0)