generated from googlefonts/googlefonts-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (60 loc) · 1.73 KB
/
build.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
54
55
56
57
58
59
60
61
62
name: Build font and specimen
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install ttfautohint
run: |
sudo apt-get update
sudo apt-get install ttfautohint
- uses: actions/cache@v2
with:
path: ./venv/
key: ${{ runner.os }}-venv-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-venv-
- name: Do first-run script if necessary
run: make .init.stamp
if: github.repository != 'googlefonts/Unified-Font-Repository'
- uses: stefanzweifel/git-auto-commit-action@v4
name: First-run setup
if: github.repository != 'googlefonts/Unified-Font-Repository'
with:
file_pattern: .init.stamp README.md
- name: Build font
run: make build
- name: Check with fontbakery
run: make test
continue-on-error: true
- name: Generate proofs
run: make proof
- name: Rearrange
run: |
mkdir for-gh-pages
mv fontbakery-report.md for-gh-pages
mv fontbakery-report.html for-gh-pages
mv badges for-gh-pages
git fetch --depth=1
mv proof/* for-gh-pages
git checkout -f gh-pages
cp -ar for-gh-pages/* .
rm -rf for-gh-pages
- uses: stefanzweifel/git-auto-commit-action@v4
name: Commit to gh-pages
with:
branch: gh-pages
file_pattern: fonts *.html badges
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: Artifacts
path: |
fonts
*.html
fontbakery-report.md