-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (42 loc) · 1.7 KB
/
render-quarto.yaml
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
name: Quarto Markdown Render, Generate Sitemap, and Deploy
on:
push:
paths:
- 'src/**/*.qmd' # Trigger the action only when .qmd files are modified or pushed
pull_request:
paths:
- 'src/**/*.qmd' # Also trigger on pull requests that modify .qmd files
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Quarto
run: |
wget https://github.com/quarto-dev/quarto-cli/releases/download/v1.4.551/quarto-1.4.551-linux-amd64.deb
sudo dpkg -i quarto-1.4.551-linux-amd64.deb
#wget https://github.com/quarto-dev/quarto-cli/releases/download/v1.7.12/quarto-1.7.12-linux-arm64.deb
#sudo dpkg -i quarto-1.7.12-linux-arm64.deb
- name: install TinyTeX
run: |
sudo wget -qO- "https://yihui.org/tinytex/install-bin-unix.sh" | sh
- name: Install OpenOffice (soffice)
run: |
sudo apt update
sudo apt install -y libreoffice libreoffice-common libreoffice-writer fonts-dejavu
sudo apt install -y coreutils procps
- name: Render all Quarto, Markdown, and Jupyter files to HTML/DOCX/PDF
run: |
quarto render
- name: Convert .docx to .pdf with soffice
run: |
chmod +x scripts/convert_docx_to_pdf.sh
timeout 3s ./scripts/convert_docx_to_pdf.sh || true
timeout 10m ./scripts/convert_docx_to_pdf.sh
- name: Deploy to GitHub Pages (gh-pages-test branch)
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages-test # Push to gh-pages-test before approved go-live
folder: _site