Skip to content

Optimize SVGs on ui-icons #13

Optimize SVGs on ui-icons

Optimize SVGs on ui-icons #13

Workflow file for this run

on:
# This workflow will be laucnhed manually and will trigger a new commit
# on the branc that is specified.
workflow_dispatch:
name: Optimize SVGs on ui-icons
jobs:
optimize:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- run: pip install -r .github/helpers/ui-icons/requirements.txt
- run: |
for icon in ui-icons/icons/*; do
echo "::group::Optimizing $icon"
picosvg $icon --output_file $icon
echo "::endgroup::"
done
- uses: actions/setup-node@v3
with:
node-version: 18
- run: |
cd ui-icons
npm install
npm run svgo
- uses: EndBug/add-and-commit@v4
with:
add: 'ui-icons/icons'
message: 'Optimize SVGs'
author_email: [email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}