-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
100 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Compress PNGs | ||
name: Compress PNGs ποΈ | ||
|
||
on: | ||
schedule: | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
name: "Update Icons and Resources β¨" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
paths: | ||
- "svg/**" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
convert_assets: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout Repository ποΈ | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref_name }} | ||
|
||
- 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 "[email protected]" | ||
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 pull --rebase origin ${{ github.ref_name }} | ||
git push origin HEAD:${{ github.ref_name }} | ||
generate_file_tree: | ||
needs: convert_assets | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout Repository ποΈ | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref_name }} | ||
|
||
- name: Set Up Python π | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Generate File Tree π³ | ||
run: python scripts/generate_folder_tree.py svg png webp | ||
|
||
- name: Commit and Push Changes π€ | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Dashboard Icons Bot" | ||
git add tree.json | ||
git commit -m ":construction_worker: Generate file tree" || exit 0 | ||
git pull --rebase origin ${{ github.ref_name }} | ||
git push origin HEAD:${{ github.ref_name }} | ||
generate_icons_page: | ||
needs: generate_file_tree | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout Repository ποΈ | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref_name }} | ||
|
||
- name: Set Up Python π | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Generate ICONS.md π | ||
run: python scripts/generate_icons_page.py | ||
|
||
- name: Commit and Push Changes π€ | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Dashboard Icons Bot" | ||
git add ICONS.md | ||
git commit -m ":construction_worker: Generate ICONS.md" || exit 0 | ||
git pull --rebase origin ${{ github.ref_name }} | ||
git push origin HEAD:${{ github.ref_name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Validate and Preview Icons | ||
name: Validate and Preview Icons β | ||
|
||
on: | ||
pull_request: | ||
|