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 e577a07
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
picosvg~=0.20.6
9 changes: 9 additions & 0 deletions .github/workflows/optimize.yml
Original file line number Diff line number Diff line change
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 e577a07

Please sign in to comment.