forked from cakephp/docs
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (36 loc) · 984 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: CI
on:
push:
branches:
- '4.x'
- '4.next'
pull_request:
branches:
- '*'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
doc-type: ['HTML', 'EPUB', 'PDF']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install packages
run: |
sudo apt update
sudo apt install texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-lang-all
- name: Build Docs
run: |
if [[ ${{ matrix.doc-type }} == 'HTML' ]]; then make html SPHINXOPTS='-W --keep-going'; fi
if [[ ${{ matrix.doc-type }} == 'EPUB' ]]; then make epub; fi
if [[ ${{ matrix.doc-type }} == 'PDF' ]]; then make latex; fi