2022-09-18 16:11:03 +02:00
|
|
|
name: PackSVGs
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'src/svgs/*'
|
|
|
|
- 'bin/scripts/generate-original-source.py'
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
create-symbols-font:
|
2022-09-19 11:43:54 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2022-09-18 16:11:03 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2022-09-19 11:43:54 +02:00
|
|
|
- name: Fetch dependencies
|
2022-09-18 16:11:03 +02:00
|
|
|
run: |
|
|
|
|
sudo apt update -y -q
|
2022-09-19 11:43:54 +02:00
|
|
|
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
|
2022-09-18 16:11:03 +02:00
|
|
|
|
|
|
|
- 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
|
2022-09-19 11:43:54 +02:00
|
|
|
|
2022-09-18 16:11:03 +02:00
|
|
|
- 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
|