1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-19 20:12:52 +02:00
nerd-fonts/.github/workflows/packsvgs.yml

49 lines
1.4 KiB
YAML
Raw Normal View History

name: PackSVGs
on:
push:
paths:
- 'src/svgs/*'
- 'bin/scripts/generate-original-source.py'
workflow_dispatch:
jobs:
create-symbols-font:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Fetch dependencies
run: |
sudo apt update -y -q
sudo apt install python3-fontforge inkscape dc -y -q
- name: Simplify the SVGs
run: |
cd bin/scripts
./optimize-original-source.sh doit
- name: Commit simplified SVGs back to repo
uses: EndBug/add-and-commit@v9
with:
fetch: false
add: 'src/svgs'
message: "[ci] Simplify original-source source glyphs"
committer_name: GitHub Actions
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
- name: Create Seti and original symbols font
run: |
cd bin/scripts
ls -l ../../src/glyphs/original-source.otf
./generate-original-source.py
ls -l ../../src/glyphs/original-source.otf
- name: Commit patched fonts back to repo
uses: EndBug/add-and-commit@v9
with:
fetch: false
add: 'src/glyphs/original-source.otf'
message: "[ci] Rebuild original-source font"
committer_name: GitHub Actions
committer_email: 41898282+github-actions[bot]@users.noreply.github.com