updated 24 px version to round off extra px #1201
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| paths: | |
| - 'icons/**' | |
| - '.github/workflows/optimize.yml' | |
| - '.github/actions/python/requirements.txt' | |
| pull_request: | |
| paths: | |
| - 'icons/**' | |
| - '.github/workflows/optimize.yml' | |
| - '.github/actions/python/requirements.txt' | |
| name: Optimize SVGs | |
| 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/actions/python/requirements.txt | |
| - run: for icon in icons/*; do picosvg $icon --output_file $icon; done | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| - run: npm install | |
| - run: npm run svgo | |
| - uses: EndBug/add-and-commit@v4 | |
| with: | |
| add: 'icons' | |
| message: 'Optimize SVGs' | |
| author_email: actions@github.com | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |