-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (50 loc) · 1.58 KB
/
build_n_deploy.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
58
name: Build and Deploy
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
pages: write
jobs:
quarto-linux:
runs-on: ubuntu-latest
steps:
# Update Ubuntu packages
- name: Update apt
run: sudo apt update
# Install additional Ubuntu packages
- name: Install additional packages
run: sudo apt-get install -y librsvg2-bin libcurl4-openssl-dev libharfbuzz-dev libfribidi-dev
# Checkout repository
- name: Check out repository
uses: actions/checkout@v4
# Setup Python with a fixed version
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -r requirements.txt
# Setup Quarto with fixed version
- name: Setup Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true
version: 1.4.556
# Render full profile
- name: Publish to GitHub Pages (and render)
uses: quarto-dev/quarto-actions/render@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions
QUARTO_PROFILE: full
with:
path: output/book/
# Render Klausur profile
- name: Publish to GitHub Pages (and render)
uses: quarto-dev/quarto-actions/render@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions
QUARTO_PROFILE: klausur
with:
path: output/klausur/