Skip to content

Commit e7aff25

Browse files
committed
Add fonts to repository and use local fonts in CI
- Include Font Awesome and Hanken Grotesk fonts in fonts/ - Update CI to copy from local fonts/ instead of downloading - Also fetch config/ and img/ from content branch
1 parent d1f8f87 commit e7aff25

6 files changed

Lines changed: 10 additions & 22 deletions

.github/workflows/ci.yml

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -82,35 +82,23 @@ jobs:
8282
- name: Install required fonts
8383
run: |
8484
echo "📥 Installing fonts for PDF generation..."
85-
86-
# Install Font Awesome for icons
87-
echo "Downloading Font Awesome..."
88-
wget https://github.com/FortAwesome/Font-Awesome/releases/download/6.5.1/fontawesome-free-6.5.1-desktop.zip
89-
unzip fontawesome-free-6.5.1-desktop.zip
90-
sudo mkdir -p /usr/share/fonts/truetype/fontawesome
91-
sudo cp fontawesome-free-6.5.1-desktop/otfs/*.otf /usr/share/fonts/truetype/fontawesome/
92-
93-
# Install Hanken Grotesk
94-
echo "Downloading Hanken Grotesk..."
95-
git clone --depth 1 https://github.com/marcologous/hanken-grotesk.git
96-
sudo mkdir -p /usr/share/fonts/truetype/hanken-grotesk
97-
sudo cp hanken-grotesk/fonts/ttf/*.ttf /usr/share/fonts/truetype/hanken-grotesk/
98-
99-
# Update font cache
100-
echo "Updating font cache..."
101-
sudo fc-cache -fv
102-
echo "✅ Fonts installed (Hanken Grotesk + Font Awesome)"
85+
sudo mkdir -p /usr/share/fonts/truetype/cv-fonts
86+
sudo cp fonts/*.otf fonts/*.ttf /usr/share/fonts/truetype/cv-fonts/
87+
sudo fc-cache -f
88+
echo "✅ Fonts installed from repository"
10389
10490
- name: Build CV generator
10591
run: cargo build --release --bin cv
10692

107-
- name: Fetch CV data from 'content' branch
93+
- name: Fetch content from 'content' branch
10894
run: |
10995
echo "📥 Fetching content branch..."
11096
git fetch origin content
111-
echo "📋 Checking out CV data from content branch..."
112-
git checkout origin/content -- data/cv_data.json
113-
echo "✅ Successfully fetched CV data."
97+
echo "📋 Checking out content from content branch..."
98+
git checkout origin/content -- data/
99+
git checkout origin/content -- config/ 2>/dev/null || echo "ℹ️ No config/ on content branch, using defaults"
100+
git checkout origin/content -- img/ 2>/dev/null || echo "ℹ️ No img/ on content branch, will use GitHub avatar"
101+
echo "✅ Successfully fetched content."
114102
115103
- name: Generate CV files
116104
run: |
542 KB
Binary file not shown.
186 KB
Binary file not shown.
1000 KB
Binary file not shown.

fonts/HankenGrotesk-Bold.ttf

55.8 KB
Binary file not shown.

fonts/HankenGrotesk-Regular.ttf

55.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)