-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (36 loc) · 871 Bytes
/
build.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
name: Build
on:
push:
branches: [master]
tags: [v2.*]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Dependency
run: sudo apt-get install -y --no-install-recommends fontforge make curl
- name: Prepare FontPatcher
run: make FontPatcher
- name: Patch Fonts
run: make PATCH_OPTS='-q'
- uses: actions/upload-artifact@v3
with:
name: artifacts
path: |
*.ttf
*.otf
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
needs: build
steps:
- uses: actions/download-artifact@v3
- uses: softprops/action-gh-release@v1
with:
files: |
artifacts/*.ttf
artifacts/*.otf