Skip to content

Commit 512622a

Browse files
committed
year 2025
Signed-off-by: Ji Bin <matrixji@live.com>
1 parent 3bc2cb7 commit 512622a

37 files changed

+9
-215
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- "main"
7+
- "year2025"
78

89
jobs:
910
deploy-site:
@@ -27,4 +28,10 @@ jobs:
2728
known_hosts: ~/.ssh/known_hosts
2829
- name: deploy site
2930
run: |
30-
rsync -avpz -e "ssh -o StrictHostKeyChecking=no" --delete dist/ root@c4.jibin.net:/opt/w.jibin.net
31+
branch=$(echo $GITHUB_REF | sed 's/refs\/heads\///')
32+
if [ "$branch" = "year2025" ]; then
33+
rsync -avpz -e "ssh -o StrictHostKeyChecking=no" --delete dist/ root@c4.jibin.net:/opt/w25.jibin.net
34+
else
35+
rsync -avpz -e "ssh -o StrictHostKeyChecking=no" --delete dist/ root@c4.jibin.net:/opt/w.jibin.net
36+
fi
37+
echo "Deployed to $branch branch"

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const config = {
44
pic: "/default.webp",
55
logo: "/favicon.png",
66
description: "BIN周刊: 一周一次,分享所见所闻、所思所想",
7-
url: "https://w.jibin.net",
7+
url: "https://w25.jibin.net",
88
github: "https://github.com/matrixji/bin-weekly",
99
twitter: "https://twitter.com/matrixji",
1010
umami: "8451f513-d7e5-4827-a22d-e06f33ba7461",

src/pages/posts/2513-钱塘江边.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/pages/posts/2514-老家的树.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/pages/posts/2515-雨中毅行.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/pages/posts/2516-又一家面店.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/pages/posts/2517-期待五一.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/pages/posts/2518-高山飞驒.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/pages/posts/2519-常规骑行.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/pages/posts/2520-骑行协会.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)