mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 05:08:41 +08:00
ci: documentation workflow is now only triggered when the Documentation subdirectory has modifications, and does not build pdfs.
This commit is contained in:
parent
d6c795dda3
commit
394530e3c2
1 changed files with 10 additions and 9 deletions
19
.github/workflows/doc.yml
vendored
19
.github/workflows/doc.yml
vendored
|
@ -12,9 +12,17 @@
|
|||
#
|
||||
---
|
||||
name: "Build Documentation"
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'Documentation/**'
|
||||
|
||||
pull_request:
|
||||
paths:
|
||||
- 'Documentation/**'
|
||||
|
||||
concurrency:
|
||||
group: docs-${{ github.event.pull_request.number || github.ref }}
|
||||
|
@ -31,19 +39,12 @@ jobs:
|
|||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.8'
|
||||
- name: Install LaTeX packages
|
||||
run: |
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install -y \
|
||||
texlive-latex-recommended texlive-fonts-recommended \
|
||||
texlive-latex-base texlive-latex-extra latexmk texlive-luatex \
|
||||
fonts-freefont-otf xindy
|
||||
- name: Generate Documentation
|
||||
run: |
|
||||
cd Documentation/
|
||||
pip3 install pipenv
|
||||
pipenv install
|
||||
pipenv run make html latexpdf
|
||||
pipenv run make html
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: sphinx-docs
|
||||
|
|
Loading…
Reference in a new issue