Create zerops-shield.svg #17
This file contains 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
name: Optimize SVGs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
optimize: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install dependencies | |
run: npm install | |
- name: Run SVG optimization script | |
run: node index.js | |
- name: Configure Git | |
run: | | |
git config --global user.name "zerops-gh" | |
git config --global user.email "[email protected]" | |
- name: Commit and push changes | |
run: | | |
git add . | |
git commit -m "Optimize SVG files" | |
git push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
UV_THREADPOOL_SIZE: 64 |