Skip to content

Commit 925eba3

Browse files
daverageclaude
andcommitted
Add CI workflow, fix npm package scope, and update readme
- Add GitHub Actions workflow for font build + fontbakery validation - Remove easytypesans.zip from npm files, include all three font families - Fix readme build command path to Generator Tools/font.py Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fd30091 commit 925eba3

3 files changed

Lines changed: 47 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build & Validate Fonts
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.12"
19+
20+
- name: Install dependencies
21+
run: |
22+
pip install fonttools requests
23+
sudo apt-get update && sudo apt-get install -y woff2
24+
25+
- name: Build fonts
26+
working-directory: Generator Tools
27+
run: python font.py
28+
29+
- name: Install fontbakery
30+
run: pip install fontbakery
31+
32+
- name: Run fontbakery checks
33+
run: |
34+
fontbakery check-universal fonts/ttf/*.ttf --no-progress --succinct || true
35+
36+
- name: Upload font artifacts
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: easytype-fonts
40+
path: |
41+
fonts/ttf/*.ttf
42+
fonts/web/*.woff2

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
},
1515
"files": [
1616
"css/easytype.css",
17-
"fonts",
18-
"easytypesans.zip",
17+
"fonts/ttf",
18+
"fonts/web",
1919
"LICENSE",
2020
"readme.md"
2121
],

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ brew install woff2 # macOS only (optional for webfont compression)
7070
### Build
7171

7272
```bash
73-
python3 font.py
73+
python3 "Generator Tools/font.py"
7474
```
7575

7676
This generates:
@@ -136,8 +136,8 @@ Need something fast for prototypes? You can point to the maintained CDN-style co
136136
easytype-logo.svg
137137
easytype-favicon.png
138138
easytype-social.png
139-
/demo.html → Local specimen preview
140-
/font.py → Font builder script
139+
/demo.html → Local specimen preview
140+
/Generator Tools/font.py → Font builder script
141141
```
142142
143143
---

0 commit comments

Comments
 (0)