Skip to content

Commit

Permalink
ci: documentation workflow is now only triggered when the Documentati…
Browse files Browse the repository at this point in the history
…on subdirectory has modifications, and does not build pdfs.
  • Loading branch information
linguini1 authored and xiaoxiang781216 committed Oct 17, 2024
1 parent d6c795d commit 394530e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit 394530e

Please sign in to comment.