mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2024-11-26 21:25:03 +01:00
👷 Adds SVG conversion workflow
This commit is contained in:
parent
442e8f9d77
commit
527409b28e
1 changed files with 35 additions and 0 deletions
35
.github/workflows/convert_svg_assets.yml
vendored
Normal file
35
.github/workflows/convert_svg_assets.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
name: Convert SVG Assets 🔄
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
convert_assets:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set Up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.9"
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: |
|
||||||
|
pip install cairosvg pillow
|
||||||
|
|
||||||
|
- name: Run SVG to PNG and WEBP Conversion
|
||||||
|
run: python scripts/convert_svg_assets.py
|
||||||
|
|
||||||
|
- name: Commit and Push Changes
|
||||||
|
run: |
|
||||||
|
git config --global user.email "noreply@lammers.media"
|
||||||
|
git config --global user.name "Dashboard Icons Bot"
|
||||||
|
git add png/ webp/
|
||||||
|
git commit -m ":counterclockwise_arrows: Convert SVG assets to PNG and WEBP" || exit 0
|
||||||
|
git push
|
Loading…
Reference in a new issue