Compare commits

...

3 Commits

Author SHA1 Message Date
Daniel Bayley
b7377d21eb Sort out chevron-* icons (#1355)
* Optimise `chevron-*` icons

* Improve `chevron-*` icons metadata

* Add `chevron-left-circle` icon

* Add `chevron-right-circle` icon

* Add `chevron-up-circle` icon

* Add `chevron-down-circle` icon

* Improve metadata
2023-07-07 13:46:50 +02:00
Eric Fennis
7ccf155ad4 Adjust workflow 2023-07-02 21:42:41 +02:00
Eric Fennis
c696d1e907 update workflow 2023-07-02 21:36:30 +02:00
42 changed files with 257 additions and 127 deletions

View File

@@ -63,9 +63,6 @@ jobs:
id: change-log
run: |
CHANGE_LOG=$(pnpm run generate:changelog --old-tag=${{ steps.latest-tag.outputs.LATEST_TAG }})
CHANGE_LOG="${CHANGE_LOG//'%'/'%25'}"
CHANGE_LOG="${CHANGE_LOG//$'\n'/'%0A'}"
CHANGE_LOG="${CHANGE_LOG//$'\r'/'%0D'}"
echo $CHANGE_LOG
echo "CHANGE_LOG=$CHANGE_LOG" >> $GITHUB_OUTPUT
env:
@@ -84,6 +81,6 @@ jobs:
body: ${{ steps.change-log.outputs.CHANGE_LOG }}
- name: Release packages
uses: './release.yml'
uses: './.github/workflows/release.yml'
with:
version: ${{ steps.new-version.outputs.NEW_VERSION }}

View File

@@ -77,7 +77,7 @@ jobs:
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- name: Set new version
run: pnpm --filter ${{ matrix.package }} version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version
run: pnpm --filter ${{ matrix.package }} version --new-version ${{ needs.pre-release.outputs.VERSION }} --no-git-tag-version
- name: Build
run: pnpm --filter ${{ matrix.package }} build
@@ -127,7 +127,7 @@ jobs:
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- name: Set new version
run: pnpm --filter lucide-static version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version
run: pnpm --filter lucide-static version --new-version ${{ needs.pre-release.outputs.VERSION }} --no-git-tag-version
- name: Move Font
run: cp -r lucide-font packages/lucide-static/font
@@ -187,75 +187,11 @@ jobs:
name: lucide-font
path: lucide-font
lucide-flutter:
if: github.repository == 'lucide-icons/lucide'
runs-on: ubuntu-latest
needs: [pre-release, lucide-font]
container:
image: cirrusci/flutter:latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v2
- uses: actions/cache@v2
with:
path: ~/.pub-cache
key: ${{ runner.os }}-pub-${{ hashFiles('~/.pub-cache') }}
restore-keys: |
${{ runner.os }}-pub-
- name: Setup credentials
run: |
mkdir -p ~/.pub-cache
cat <<EOF > ~/.pub-cache/credentials.json
{
"accessToken": "${{ secrets.GOOGLE_OAUTH_ACCESS_TOKEN }}",
"refreshToken": "${{ secrets.GOOGLE_OAUTH_REFRESH_TOKEN }}",
"idToken": "${{ secrets.GOOGLE_OAUTH_ID_TOKEN }}",
"tokenEndpoint":"https://accounts.google.com/o/oauth2/token",
"scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ],
"expiration": 1629835569218
}
EOF
- name: Get packages
run: flutter pub get
working-directory: packages/lucide-flutter
- name: List lucide-font folder
run: ls lucide-font
- name: Copy assets from lucide-font directory
run: |
mkdir packages/lucide-flutter/assets
cp lucide-font/lucide.ttf packages/lucide-flutter/assets/lucide.ttf
cp lucide-font/lucide-preview.html packages/lucide-flutter/assets/lucide-preview.html
- name: Generate exports file
run: |
dart tool/generate_fonts.dart assets/lucide-preview.html
flutter format .
working-directory: packages/lucide-flutter
- name: Test
run: flutter test
working-directory: packages/lucide-flutter
- name: Copy License
run: cp ../../LICENSE ./LICENSE
working-directory: packages/lucide-flutter
- name: Update yaml
run: sed -E 's/(version:)[^\n]*/\1 ${{ needs.pre-build.outputs.VERSION }}/;' pubspec.yaml > pubspec && mv pubspec pubspec.yaml
working-directory: packages/lucide-flutter
- name: Flutter publish
run: flutter pub publish -f
working-directory: packages/lucide-flutter
post-release:
if: github.repository == 'lucide-icons/lucide'
runs-on: ubuntu-latest
needs: [
pre-release,
lucide-font,
]

View File

@@ -0,0 +1,16 @@
{
"$schema": "../icon.schema.json",
"contributors": [
"danielbayley",
"ericfennis"
],
"tags": [
"back",
"menu"
],
"categories": [
"arrows",
"navigation",
"shapes"
]
}

View File

@@ -0,0 +1,14 @@
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="12" r="10" />
<path d="m16 10-4 4-4-4" />
</svg>

After

Width:  |  Height:  |  Size: 274 B

View File

@@ -5,10 +5,13 @@
"ericfennis"
],
"tags": [
"arrow"
"back",
"menu",
"panel"
],
"categories": [
"arrows",
"navigation",
"shapes"
]
}

View File

@@ -9,6 +9,6 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="18" height="18" x="3" y="3" rx="2" ry="2" />
<polyline points="16,10 12,14 8,10" />
<rect width="18" height="18" x="3" y="3" rx="2" />
<path d="m16 10-4 4-4-4" />
</svg>

Before

Width:  |  Height:  |  Size: 309 B

After

Width:  |  Height:  |  Size: 291 B

View File

@@ -4,9 +4,13 @@
"colebemis"
],
"tags": [
"arrow"
"backwards",
"reverse",
"slow"
],
"categories": [
"arrows"
"arrows",
"navigation",
"gaming"
]
}

View File

@@ -9,5 +9,5 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<polyline points="6 9 12 15 18 9" />
<path d="m6 9 6 6 6-6" />
</svg>

Before

Width:  |  Height:  |  Size: 247 B

After

Width:  |  Height:  |  Size: 236 B

View File

@@ -5,11 +5,11 @@
"ericfennis"
],
"tags": [
"arrow",
"previous",
"music"
],
"categories": [
"arrows"
"arrows",
"multimedia"
]
}

View File

@@ -9,6 +9,6 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<polyline points="17 18 11 12 17 6" />
<path d="m17 18-6-6 6-6" />
<path d="M7 6v12" />
</svg>

Before

Width:  |  Height:  |  Size: 272 B

After

Width:  |  Height:  |  Size: 261 B

View File

@@ -5,12 +5,12 @@
"ericfennis"
],
"tags": [
"arrow",
"skip",
"next",
"music"
],
"categories": [
"arrows"
"arrows",
"multimedia"
]
}

View File

@@ -9,6 +9,6 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<polyline points="7 18 13 12 7 6" />
<path d="m7 18 6-6-6-6" />
<path d="M17 6v12" />
</svg>

Before

Width:  |  Height:  |  Size: 271 B

After

Width:  |  Height:  |  Size: 261 B

View File

@@ -0,0 +1,19 @@
{
"$schema": "../icon.schema.json",
"contributors": [
"danielbayley"
],
"tags": [
"back",
"previous",
"less than",
"fewer",
"menu",
"<"
],
"categories": [
"arrows",
"navigation",
"shapes"
]
}

View File

@@ -0,0 +1,14 @@
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="12" r="10" />
<path d="m14 16-4-4 4-4" />
</svg>

After

Width:  |  Height:  |  Size: 274 B

View File

@@ -5,10 +5,19 @@
"ericfennis"
],
"tags": [
"arrow"
"back",
"previous",
"less than",
"fewer",
"menu",
"panel",
"button",
"keyboard",
"<"
],
"categories": [
"arrows",
"navigation",
"shapes"
]
}

View File

@@ -9,6 +9,6 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="18" height="18" x="3" y="3" rx="2" ry="2" />
<polyline points="14,16 10,12 14,8" />
<rect width="18" height="18" x="3" y="3" rx="2" />
<path d="m14 16-4-4 4-4" />
</svg>

Before

Width:  |  Height:  |  Size: 309 B

After

Width:  |  Height:  |  Size: 291 B

View File

@@ -4,9 +4,15 @@
"colebemis"
],
"tags": [
"arrow"
"back",
"previous",
"less than",
"fewer",
"menu",
"<"
],
"categories": [
"arrows"
"arrows",
"navigation"
]
}

View File

@@ -9,5 +9,5 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<polyline points="15 18 9 12 15 6" />
<path d="m15 18-6-6 6-6" />
</svg>

Before

Width:  |  Height:  |  Size: 248 B

After

Width:  |  Height:  |  Size: 238 B

View File

@@ -0,0 +1,18 @@
{
"$schema": "../icon.schema.json",
"contributors": [
"danielbayley"
],
"tags": [
"back",
"more than",
"greater",
"menu",
">"
],
"categories": [
"arrows",
"navigation",
"shapes"
]
}

View File

@@ -0,0 +1,14 @@
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="12" r="10" />
<path d="m10 8 4 4-4 4" />
</svg>

After

Width:  |  Height:  |  Size: 273 B

View File

@@ -5,15 +5,25 @@
"ericfennis"
],
"tags": [
"forward",
"next",
"more than",
"greater",
"menu",
"panel",
"code",
"coding",
"command line",
"terminal",
"prompt",
"shell",
"console"
"console",
">"
],
"categories": [
"development",
"shapes"
"arrows",
"navigation",
"shapes",
"development"
]
}

View File

@@ -9,6 +9,6 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="18" height="18" x="3" y="3" rx="2" ry="2" />
<polyline points="10,8 14,12 10,16" />
<rect width="18" height="18" x="3" y="3" rx="2" />
<path d="m10 8 4 4-4 4" />
</svg>

Before

Width:  |  Height:  |  Size: 309 B

After

Width:  |  Height:  |  Size: 290 B

View File

@@ -4,16 +4,23 @@
"colebemis"
],
"tags": [
"arrow",
"forward",
"next",
"more than",
"greater",
"menu",
"code",
"coding",
"command line",
"terminal",
"prompt",
"shell"
"shell",
">"
],
"categories": [
"arrows",
"development",
"shapes"
"navigation",
"maths",
"development"
]
}

View File

@@ -9,5 +9,5 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<polyline points="9 18 15 12 9 6" />
<path d="m9 18 6-6-6-6" />
</svg>

Before

Width:  |  Height:  |  Size: 247 B

After

Width:  |  Height:  |  Size: 237 B

View File

@@ -0,0 +1,17 @@
{
"$schema": "../icon.schema.json",
"contributors": [
"danielbayley"
],
"tags": [
"caret",
"ahead",
"menu",
"^"
],
"categories": [
"arrows",
"navigation",
"shapes"
]
}

View File

@@ -0,0 +1,14 @@
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<circle cx="12" cy="12" r="10" />
<path d="m8 14 4-4 4 4" />
</svg>

After

Width:  |  Height:  |  Size: 273 B

View File

@@ -5,10 +5,24 @@
"ericfennis"
],
"tags": [
"arrow"
"caret",
"keyboard",
"button",
"mac",
"control",
"ctrl",
"superscript",
"exponential",
"power",
"ahead",
"menu",
"panel",
"^"
],
"categories": [
"arrows",
"navigation",
"maths",
"shapes"
]
}

View File

@@ -9,6 +9,6 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="18" height="18" x="3" y="3" rx="2" ry="2" />
<polyline points="8,14 12,10 16,14" />
<rect width="18" height="18" x="3" y="3" rx="2" />
<path d="m8 14 4-4 4 4" />
</svg>

Before

Width:  |  Height:  |  Size: 309 B

After

Width:  |  Height:  |  Size: 290 B

View File

@@ -4,16 +4,22 @@
"colebemis"
],
"tags": [
"arrow",
"caret",
"keyboard",
"key",
"mac",
"control",
"ctrl",
"button"
"superscript",
"exponential",
"power",
"ahead",
"fast",
"^"
],
"categories": [
"arrows"
"arrows",
"navigation",
"maths",
"gaming"
]
}

View File

@@ -9,5 +9,5 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<polyline points="18 15 12 9 6 15" />
<path d="m18 15-6-6-6 6" />
</svg>

Before

Width:  |  Height:  |  Size: 248 B

After

Width:  |  Height:  |  Size: 238 B

View File

@@ -6,7 +6,6 @@
"ericfennis"
],
"tags": [
"arrow",
"collapse",
"fold",
"vertical"

View File

@@ -4,9 +4,13 @@
"colebemis"
],
"tags": [
"arrow"
"backwards",
"reverse",
"slower"
],
"categories": [
"arrows"
"arrows",
"navigation",
"gaming"
]
}

View File

@@ -9,6 +9,6 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<polyline points="7 13 12 18 17 13" />
<polyline points="7 6 12 11 17 6" />
<path d="m7 6 5 5 5-5" />
<path d="m7 13 5 5 5-5" />
</svg>

Before

Width:  |  Height:  |  Size: 288 B

After

Width:  |  Height:  |  Size: 265 B

View File

@@ -4,7 +4,6 @@
"karsa-mistmere"
],
"tags": [
"arrow",
"expand",
"horizontal",
"unfold"

View File

@@ -4,9 +4,12 @@
"colebemis"
],
"tags": [
"arrow"
"turn",
"corner"
],
"categories": [
"arrows"
"arrows",
"navigation",
"gaming"
]
}

View File

@@ -9,6 +9,6 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<polyline points="11 17 6 12 11 7" />
<polyline points="18 17 13 12 18 7" />
<path d="m11 17-5-5 5-5" />
<path d="m18 17-5-5 5-5" />
</svg>

Before

Width:  |  Height:  |  Size: 289 B

After

Width:  |  Height:  |  Size: 268 B

View File

@@ -4,7 +4,6 @@
"karsa-mistmere"
],
"tags": [
"arrow",
"collapse",
"fold",
"horizontal"

View File

@@ -4,9 +4,12 @@
"colebemis"
],
"tags": [
"arrow"
"turn",
"corner"
],
"categories": [
"arrows"
"arrows",
"navigation",
"gaming"
]
}

View File

@@ -9,6 +9,6 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<polyline points="13 17 18 12 13 7" />
<polyline points="6 17 11 12 6 7" />
<path d="m6 17 5-5-5-5" />
<path d="m13 17 5-5-5-5" />
</svg>

Before

Width:  |  Height:  |  Size: 288 B

After

Width:  |  Height:  |  Size: 267 B

View File

@@ -5,7 +5,6 @@
"ericfennis"
],
"tags": [
"arrow",
"expand",
"unfold",
"vertical"

View File

@@ -4,9 +4,15 @@
"colebemis"
],
"tags": [
"arrow"
"forward",
"ahead",
"faster",
"speed",
"boost"
],
"categories": [
"arrows"
"arrows",
"navigation",
"gaming"
]
}

View File

@@ -9,6 +9,6 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<polyline points="17 11 12 6 7 11" />
<polyline points="17 18 12 13 7 18" />
<path d="m17 11-5-5-5 5" />
<path d="m17 18-5-5-5 5" />
</svg>

Before

Width:  |  Height:  |  Size: 289 B

After

Width:  |  Height:  |  Size: 268 B