mirror of
https://github.com/homarr-labs/dashboard-icons.git
synced 2025-09-10 01:38:31 +02:00
fix(ci): create svgo config if missing
Signed-off-by: Bjorn Lammers <bjorn@lammers.media>
This commit is contained in:
parent
f296bd13ad
commit
e77c3c4ef2
1 changed files with 9 additions and 0 deletions
9
.github/workflows/compress_icons.yml
vendored
9
.github/workflows/compress_icons.yml
vendored
|
@ -23,6 +23,15 @@ jobs:
|
|||
sudo apt-get install -y zopfli webp npm
|
||||
npm install -g svgo
|
||||
|
||||
- name: Create svgo.config.js if Missing
|
||||
run: |
|
||||
if [ ! -f "svgo.config.js" ]; then
|
||||
echo "Creating svgo.config.js..."
|
||||
echo "module.exports = { plugins: [{ removeViewBox: false }, { cleanupIDs: false }] };" > svgo.config.js
|
||||
else
|
||||
echo "svgo.config.js already exists."
|
||||
fi
|
||||
|
||||
- name: Compress PNG Files
|
||||
run: |
|
||||
echo "Compressing PNGs..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue