fix: optimize and cleanup everything (#30) #94
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: CI / Bundle Icons | |
on: | |
push: | |
tags: ['**'] | |
branches: ["master"] | |
workflow_dispatch: | |
jobs: | |
bundle-svg-files: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
node: [18.x, 20.x, 22.x] # Only LTS versions | |
steps: | |
- name: Checkout Icons | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Create Directory | |
run: mkdir -p bundled_icons | |
- name: Find and Copy SVG Files | |
run: find . -name "*.svg" -exec cp {} bundled_icons/ \; | |
- name: Verify Copied SVG Files | |
run: ls -al bundled_icons | |
- name: Generate Checksums | |
run: | | |
cd bundled_icons | |
md5 *.svg > checksum.md5 | |
cat checksum.md5 # Print checksum for debugging | |
- name: Upload Bundled SVGs as Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: bundled_icons | |
path: bundled_icons |