generated from AlgebraicJulia/quarto-website
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (57 loc) · 1.72 KB
/
render_quarto.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
56
57
name: Render Quarto Website
on:
workflow_call:
inputs:
build_all:
description: "Whether or not to delete the _freeze directory before rendering"
required: true
type: boolean
save_build:
description: "Whether or not to upload _site and _freeze artifacts"
required: true
type: boolean
jobs:
render:
runs-on: ubuntu-latest
env:
# Work around GR segfault: https://github.com/jheinen/GR.jl/issues/422
GKSwstype: nul
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Intall LaTeX dependencies
run: |
sudo apt-get update
sudo apt-get install graphviz pdf2svg dvisvgm
quarto install tinytex --update-path
tlmgr update --self
tlmgr install tikz-cd luatex85
- name: Install Julia
uses: julia-actions/setup-julia@v1
with:
version: 1.8
- name: Setup up Julia Project
run: |
python3 -m pip install jupyter
julia -e 'using Pkg; Pkg.activate("."); Pkg.instantiate();'
- name: Remove frozen posts
if: ${{ inputs.build_all }}
run: |
rm -rf _freeze _site
# TODO: IF RENDER FAILS, OPEN NEW ISSUE OF BROKEN POSTS
- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2
- uses: actions/upload-artifact@v3
if: ${{ inputs.save_build }}
with:
name: _site
path: _site
- uses: actions/upload-artifact@v3
if: ${{ inputs.save_build }}
with:
name: _freeze
path: _freeze