mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-10-27 21:49:04 +08:00
🧑💻 CI & Config changes (#369)
Co-authored-by: Dashboard Icons Bot <noreply@walkx.fyi>
This commit is contained in:
26
.github/ISSUE_TEMPLATE/_request_suggest.yml
vendored
26
.github/ISSUE_TEMPLATE/_request_suggest.yml
vendored
@@ -1,26 +0,0 @@
|
||||
name: "\U0001FA79 Requests & Suggestions"
|
||||
description: Suggest an icon or request changes
|
||||
labels: "\U0001FA79 Requests & Suggestions"
|
||||
assignees: walkxcode
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: "Thank you for your interest in contributing to our icon repository! To ensure that everything runs smoothly, we've set out some guidelines for contributors.\n## \U0001F31F Icon Specifications\n\n- Each icon should be in `PNG` format and have a height of exactly `512px`. Width does not matter. ❗️(No upscales! If the correct size cannot be found, a smaller height will be accepted.)\n\n- Each icon should include both a `PNG` and `SVG` version. If an `SVG` cannot be found, then only a `PNG` version is required.\n\n- Icons should be named after their full name, with spaces replaced by dashes. For example, \"Facebook Messenger\" should be named `facebook-messenger.png`.\n\n- Monochrome icons should default to a dark version. Light versions should be named `service-light.png`. If a light version is not available, use https://pinetools.com/colorize-image to change its color.\n\n- If an `SVG` is available for an icon, the `PNG` should be a conversion of that `SVG`. Use https://ezgif.com/svg-to-png to do this. Set the height to `512px` and leave the width empty.\n"
|
||||
- type: textarea
|
||||
id: icon-name
|
||||
attributes:
|
||||
label: Icon Name
|
||||
description: What is the name of the icon you are contributing?
|
||||
placeholder: Enter icon name here
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: icons
|
||||
attributes:
|
||||
label: Icon(s)
|
||||
description: >-
|
||||
Upload your icons here. You can do this by Copy-Pasting or Drag &
|
||||
Dropping the images.
|
||||
placeholder: Copy-Paste or Drag & Drop images here!
|
||||
validations:
|
||||
required: false
|
||||
26
.github/ISSUE_TEMPLATE/request_suggest.yml
vendored
Normal file
26
.github/ISSUE_TEMPLATE/request_suggest.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: "\U0001FA79 Requests & Suggestions"
|
||||
description: Suggest an icon or request changes
|
||||
labels: "\U0001FA79 Requests & Suggestions"
|
||||
assignees: walkxcode
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: "Thank you for your interest in contributing to our icon repository! To ensure that everything runs smoothly, we've set out some guidelines for contributors.\n## 🌟 Icon Specifications\n\n- Each icon should include both a **PNG** and **SVG** version. If an **SVG** cannot be found, then only a **PNG** version is required.\n\n- Each icon should be in **PNG** format and have a height of exactly **512px**. Width does not matter. ❗️(No upscales! If the correct size cannot be found, a smaller height will be accepted.)\n\n- Icons should be named after their full name, using the [Kebab Case](https://wiki.c2.com/?KebabCase) naming convention. For example, \"Facebook Messenger\" should be named `facebook-messenger.png`.\n\n- Monochrome icons should default to a dark version. Light versions should be named `service-light.png`. If a light version is not available, use [https://pinetools.com/colorize-image](https://pinetools.com/colorize-image) to change its color.\n"
|
||||
- type: textarea
|
||||
id: icon-name
|
||||
attributes:
|
||||
label: Icon Name
|
||||
description: What is the name of the icon you are contributing?
|
||||
placeholder: Enter icon name here
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: icons
|
||||
attributes:
|
||||
label: Icon(s)
|
||||
description: >-
|
||||
Upload your icons here. You can do this by Copy-Pasting or Drag &
|
||||
Dropping the images.
|
||||
placeholder: Copy-Paste or Drag & Drop images here!
|
||||
validations:
|
||||
required: false
|
||||
32
.github/workflows/_readme_generator.yml
vendored
32
.github/workflows/_readme_generator.yml
vendored
@@ -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
|
||||
32
.github/workflows/icons-page-generation.yml
vendored
Normal file
32
.github/workflows/icons-page-generation.yml
vendored
Normal 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
31
.github/workflows/png-compression.yml
vendored
Normal 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
31
.github/workflows/svg-compression.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user