Skip to content

Commit

Permalink
✨ feat: Update static workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Nov 20, 2024
1 parent 5124a4c commit 4fadf01
Show file tree
Hide file tree
Showing 19 changed files with 29 additions and 5 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,23 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Build Static
run: bun run build:static

- name: Commit changes
run: |-
git diff
git config --global user.name "lobehubbot"
git config --global user.email "i@lobehub.com"
git add .
git commit -m "🤖 feat: Auto build static icons" || exit 0
git push
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

- name: Release Static
run: bun run release:static
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"es"
],
"scripts": {
"build": "father build && npm run build:svg",
"build:svg": "tsx scripts/svgWorkflow/index.ts",
"build": "father build",
"build:static": "tsx scripts/svgWorkflow/index.ts",
"build:watch": "father dev",
"ci": "npm run lint && npm run type-check",
"clean": "rm -r es lib dist coverage .dumi/tmp .eslintcache node_modules/.cache",
Expand All @@ -43,7 +43,8 @@
"prepublishOnly": "npm run build",
"prettier": "prettier -c --write --no-error-on-unmatched-pattern \"**/**\"",
"pull": "git pull",
"release": "semantic-release && multi-semantic-release",
"release": "semantic-release",
"release:static": "multi-semantic-release",
"setup": "dumi setup",
"start": "npm run dev",
"sync:md": "tsx scripts/readmeWorkflow/index.ts",
Expand Down
Binary file added packages/static-png/dark/luma-color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/static-png/dark/luma-text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/static-png/dark/luma.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/static-png/light/luma-color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/static-png/light/luma-text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/static-png/light/luma.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/static-svg/icons/luma-color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/static-svg/icons/luma-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/static-svg/icons/luma.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/static-webp/dark/luma-color.webp
Binary file not shown.
Binary file added packages/static-webp/dark/luma-text.webp
Binary file not shown.
Binary file added packages/static-webp/dark/luma.webp
Binary file not shown.
Binary file added packages/static-webp/light/luma-color.webp
Binary file not shown.
Binary file added packages/static-webp/light/luma-text.webp
Binary file not shown.
Binary file added packages/static-webp/light/luma.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/svgWorkflow/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class SvgWorkflow {
}

async runSvg() {
const data = Object.values(Icons).filter((icon: any) => icon?.colorPrimary);
const data = Object.values(Icons);

await pMap(data, async (Icon: any) => {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/Luma/style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const TITLE = 'Bing';
export const TITLE = 'Luma';
export const TEXT_MULTIPLE = 0.7;
export const SPACE_MULTIPLE = 0.2;
export const COLOR_PRIMARY = '#000';

0 comments on commit 4fadf01

Please sign in to comment.