Skip to content

Commit 8adfa68

Browse files
committed
update public
1 parent 79c7d3c commit 8adfa68

File tree

5 files changed

+59
-23
lines changed

5 files changed

+59
-23
lines changed

.github/workflows/build-to-branch.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ jobs:
7979
rm -rf .next/cache
8080
mkdir -p /tmp/next-build
8181
cp -r .next/* /tmp/next-build/
82+
# copy public
83+
mkdir -p /tmp/next-public
84+
cp -r public/* /tmp/next-public/
8285
8386
# 切换或创建 build 分支
8487
git checkout -B build
@@ -91,7 +94,11 @@ jobs:
9194
rm -rf .next
9295
mkdir -p .next
9396
cp -r /tmp/next-build/* .next/
97+
rm -rf public
98+
mkdir -p public
99+
cp -r /tmp/next-public/* public/
94100
95101
git add .next
102+
git add public
96103
git commit -m "chore: build from $GITHUB_SHA"
97104
git push -f origin build

public/favicon.ico

0 Bytes
Binary file not shown.

public/favicon.png

1.08 KB
Loading

public/favicon.svg

Lines changed: 51 additions & 23 deletions
Loading

src/app/(frontend)/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export default async function RootLayout({ children }: { children: React.ReactNo
2929
<head>
3030
<InitTheme />
3131
<link href="/favicon.ico" rel="icon" sizes="32x32" />
32+
<link href="/favicon.png" rel="icon" type="image/png" />
3233
<link href="/favicon.svg" rel="icon" type="image/svg+xml" />
3334
</head>
3435
<body>

0 commit comments

Comments
 (0)