-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (44 loc) · 1.58 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
# Based on: https://tarleb.com/posts/quarto-with-gh-pages/
name: Publish Website
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
on:
push:
branches: ['main']
jobs:
quarto-publish:
name: Publish with Quarto
runs-on: ubuntu-latest
steps:
# Circumvent this problem: https://github.com/actions/checkout/issues/165
- name: Checkout code with LFS cache
uses: nschloe/action-checkout-with-lfs-cache@v1
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Render HTML
run: "quarto render docs --profile website --to html"
- name: Deploy HTML to github pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build
- name: Install TinyTex
run: quarto install tinytex
- name: Render Manual
run: "quarto render docs --profile manual --to pdf"
- name: Render Tutorial
# --no-clean to skip cleanup before rendering
run: "quarto render docs --no-clean --profile tutorial --to pdf"
- name: Render Installation Guide
# --no-clean to skip cleanup before rendering
run: "quarto render docs --no-clean --profile install --to pdf"
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: iMOD-Suite-Guides
path: |
docs/_build/iMOD-Suite-User-Guide.pdf
docs/_build/iMOD-Suite-Tutorial.pdf
docs/_build/iMOD-Suite-Installation-Guide.pdf