mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-01-27 02:15:00 +01:00
chore(github-actions): remove custom svgo config and use default settings
Signed-off-by: Bjorn Lammers <bjorn@lammers.media>
This commit is contained in:
parent
1ae3dcdb29
commit
d853da61ac
11
.github/workflows/compress_icons.yml
vendored
11
.github/workflows/compress_icons.yml
vendored
@ -23,15 +23,6 @@ jobs:
|
|||||||
sudo apt-get install -y zopfli webp npm
|
sudo apt-get install -y zopfli webp npm
|
||||||
npm install -g svgo
|
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
|
- name: Compress PNG Files
|
||||||
run: |
|
run: |
|
||||||
echo "Compressing PNGs..."
|
echo "Compressing PNGs..."
|
||||||
@ -40,7 +31,7 @@ jobs:
|
|||||||
- name: Compress SVG Files
|
- name: Compress SVG Files
|
||||||
run: |
|
run: |
|
||||||
echo "Compressing SVGs..."
|
echo "Compressing SVGs..."
|
||||||
svgo --config=svgo.config.js -f svg/
|
svgo -f svg/
|
||||||
|
|
||||||
- name: Compress WEBP Files
|
- name: Compress WEBP Files
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user