🧑‍💻 CI & Config changes (#369)

Co-authored-by: Dashboard Icons Bot <noreply@walkx.fyi>
This commit is contained in:
Bjorn Lammers
2023-04-17 00:04:08 +02:00
committed by GitHub
parent 6b76af67aa
commit 50c4b5ee2b
1981 changed files with 906 additions and 59219 deletions

View File

@@ -1,32 +0,0 @@
name: 🚀 Generates ICONS
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
architecture: "x64"
- name: ICONS Generator
run: |-
python _ci.py
cat ICONS.md
- name: Load to GitHub
run: |-
git diff
git config --global user.email "noreply@walkx.fyi"
git config --global user.name "Dashboard Icons Bot"
git add -A
git commit -m "🚀 Generates ICONS" || exit 0
git push

View File

@@ -0,0 +1,32 @@
name: 🚀 Generates ICONS
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
architecture: "x64"
- name: ICONS Generator
run: |-
python config/ci.py
cat ICONS.md
- name: Load to GitHub
run: |-
git diff
git config --global user.email "noreply@walkx.fyi"
git config --global user.name "Dashboard Icons Bot"
git add -A
git commit -m ":rocket: Generates ICONS" || exit 0
git push

31
.github/workflows/png-compression.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: 🗜️ PNG Compression
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
compress-images:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y zopfli
- name: Compress PNGs
run: |
echo "🖼️ Compressing PNGs..."
find png/ -iname "*.png" -print0 | xargs -0 -P 4 -I{} sh -c 'echo "Compressing {}"; zopflipng -y {} {}' || true
- name: Load to GitHub
run: |-
git diff
git config --global user.email "noreply@walkx.fyi"
git config --global user.name "Dashboard Icons Bot"
git add -A
git commit -m ":clamp: Compresses PNGs" || exit 0
git push

31
.github/workflows/svg-compression.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: 🗜️ SVG Compression
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
compress-images:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Dependencies
run: |
sudo apt-get update
sudo npm install -g svgo
- name: Compress SVGs
run: |
echo "🎨 Compressing SVGs..."
find svg/ -iname "*.svg" -print0 | xargs -0 -P 4 -I{} sh -c 'echo "Compressing {}"; svgo --quiet --multipass {}' || true
- name: Load to GitHub
run: |-
git diff
git config --global user.email "noreply@walkx.fyi"
git config --global user.name "Dashboard Icons Bot"
git add -A
git commit -m ":clamp: Compresses SVGs" || exit 0
git push