Skip to content

Commit

Permalink
Add picosvg to optimization step
Browse files Browse the repository at this point in the history
This should help remove `fill-rule="evenodd"` from SVGs, improving where
they can be rendered.
  • Loading branch information
eliperkins committed Dec 9, 2022
1 parent 44719a3 commit b8b7e1c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/optimize.yml
Expand Up @@ -9,11 +9,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- uses: actions/setup-node@master
with:
node-version: '10.x'
- run: npm install
- run: npm run svgo

- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- run: pip install -r .github/python/requirements.txt
- run: for icon in icons/*; do picosvg $icon --output_file $icon; done

- uses: EndBug/add-and-commit@v4
with:
add: 'icons'
Expand Down

0 comments on commit b8b7e1c

Please sign in to comment.