-
Notifications
You must be signed in to change notification settings - Fork 305
49 lines (46 loc) · 1.27 KB
/
build-fonts.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
name: Build Fonts
on:
push:
branches:
- master
paths:
- sources/**
pull_request:
branches:
- master
paths:
- sources/**
jobs:
static-font-ci-job:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.8 ]
name: Build Fonts
steps:
- name: Check out JetBrains Mono source repository
uses: actions/checkout@v3
- name: Set up Python v${{ matrix.python-version }} environment
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Python build dependency cache lookup
uses: actions/cache@v3
with:
path: ~/.cache/pip
# Check for requirements file cache hit
key: ${{ runner.os }}-pip-${{ hashFiles('${{ steps.config.outputs.dependpath }}') }}
- name: Install Python build dependencies
uses: py-actions/py-dependency-install@v3
with:
update-wheel: "true"
update-setuptools: "true"
- name: Build fonts
run: |
gftools builder sources/config.yaml
python scripts/generate_variable_webfonts.py
- name: Upload Fonts
uses: actions/upload-artifact@v3
with:
name: Fonts
path: fonts/