File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -108,11 +108,14 @@ jobs:
108
108
- name : Full build for deployment
109
109
if : github.event_name != 'pull_request'
110
110
run : echo "DOCS_FETCH_ASSETS=1" >> $GITHUB_ENV
111
+ - name : Build without warnings
112
+ if : github.event_name != 'workflow_dispatch'
113
+ run : echo "BUILD_SPHINX_OPTS=-W --keep-going" >> $GITHUB_ENV
111
114
- name : Make ${{ matrix.target }}
112
115
working-directory : ./docs/source-${{ matrix.pkg-name }}
113
116
# allow failing link check and doctest if you run with dispatch
114
- continue-on-error : ${{ (matrix.target == 'doctest' || matrix.target == 'linkcheck') && github.event_name == 'workflow_dispatch' }}
115
- run : make ${{ matrix.target }} --debug --jobs $(nproc) SPHINXOPTS="-W --keep-going "
117
+ continue-on-error : ${{ (matrix.target == 'doctest' || matrix.target == 'linkcheck') && github.event_name == 'workflow_dispatch' }}
118
+ run : make ${{ matrix.target }} --debug --jobs $(nproc) SPHINXOPTS="$BUILD_SPHINX_OPTS "
116
119
117
120
- name : Keep artifact
118
121
if : github.event_name == 'pull_request'
You can’t perform that action at this time.
0 commit comments