Skip to content

Commit c9aa1ff

Browse files
andreiiogithub-actions[bot]buddhaCode
authored
feat: use original naming convention (#64)
* feat: use original naming convention BREAKING CHANGE: changes the file structure * trigger workflow * fix tar * chore: update to iconoir v7.4.0 (#63) * test: fix tests * docs: update readme --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Arne Becker <buddhaCode@users.noreply.github.com>
1 parent add34dc commit c9aa1ff

File tree

1,554 files changed

+27
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,554 files changed

+27
-11
lines changed

.github/workflows/update.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,31 @@ jobs:
4444
- name: Download iconoir
4545
if: steps.new-version.outputs.exists
4646
run: |
47+
# Download the latest version of iconoir
4748
curl -sSL https://github.com/${{ env.repository }}/archive/refs/tags/${{ steps.latest-version.outputs.release }}.tar.gz -o iconoir.tar.gz
48-
rm resources/svg/*.svg
49+
50+
# Remove existing icons
51+
rm -rf resources/svg/*
52+
53+
# Extract the new icon directories in resources/svg
4954
tar -C resources/svg \
5055
--wildcards \
51-
--show-transformed-names \
52-
--transform 's,[^/]*/[^/]*/\([^/]*\)/\([^/]*\),\L\1-\2,' \
53-
-zxvf iconoir.tar.gz \
56+
--strip-components=2 \
57+
-zxf iconoir.tar.gz \
5458
'iconoir-*/icons/**/*.svg'
59+
60+
# Move the regular icons to resources/svg
61+
mv -v resources/svg/regular/*.svg resources/svg
62+
63+
# Add the "-solid" suffix to the solid icons and move them to resources/svg
64+
for file in resources/svg/solid/*.svg; do
65+
mv -v "$file" "resources/svg/$(basename "$file" .svg)-solid.svg"
66+
done
67+
68+
# Clean up
5569
rm iconoir.tar.gz
70+
rmdir resources/svg/regular
71+
rmdir resources/svg/solid
5672
5773
- name: Update .version
5874
if: steps.new-version.outputs.exists

README.md

Lines changed: 4 additions & 4 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)