-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.52 KB
/
ci.yml
File metadata and controls
50 lines (43 loc) · 1.52 KB
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
name: CI - Generate Whitepaper PDF
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build-pdf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Debug - List files (including subfolders)
run: |
ls -la
ls -la blueprint-versions/ || echo "blueprint-versions folder not found!"
echo "Check for Markdown file in blueprint-versions/"
- name: Install Pandoc and LaTeX dependencies
run: |
sudo apt-get update
sudo apt-get install -y pandoc texlive-latex-base texlive-fonts-recommended texlive-latex-extra texlive-fonts-extra
- name: Create output directory
run: mkdir -p output
- name: Convert Markdown to PDF with Pandoc
run: |
INPUT_FILE="blueprint-versions/Whitepaper-Blueprint-v1.1.md" # Adjust filename if different (e.g., blueprint-v1.1.md)
if [ ! -f "$INPUT_FILE" ]; then
echo "Error: $INPUT_FILE not found!"
exit 1
fi
pandoc "$INPUT_FILE" \
-o output/Whitepaper-Blueprint-v1.1.pdf \
--pdf-engine=pdflatex \
-V geometry:margin=1in \
--toc \
--variable version=1.1 \
--highlight-style=pygments || { echo "Pandoc failed! See logs above."; exit 1; }
- name: Upload PDF artifact
uses: actions/upload-artifact@v4
with:
name: whitepaper-pdf
path: output/*.pdf
retention-days: 7