-
Notifications
You must be signed in to change notification settings - Fork 44
54 lines (44 loc) · 1.19 KB
/
doc.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
45
46
47
48
49
50
51
52
name: doc
on:
push:
paths:
- 'doc/**'
pull_request:
paths:
- 'doc/**'
workflow_dispatch:
jobs:
#############
# Build doc #
#############
build:
name: Make doc
continue-on-error: false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: |
pip3 install -r doc/requirements.txt
sudo apt-get -y install latexmk texlive-latex-recommended texlive-fonts-recommended texlive-formats-extra
- name: Build doc
run: |
./autogen.sh
./configure --disable-model-fitting --disable-cfitsio --disable-threads
cd doc
make html
make latexpdf
cp build/latex/sextractor.pdf build/html/
- name: Set destination dir
if: github.ref_name != 'master'
run: |
echo "DOC_DEST=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Deploy
if: success()
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: doc-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/build/html/
destination_dir: ${{ env.DOC_DEST }}