更新README.md,删除无用的.gitkeep文件,添加新的apt源列表和.gitignore文件,新增部署脚本

This commit is contained in:
2025-03-13 15:49:39 +08:00
parent 7a8a2861ff
commit d45d3c08e7
7 changed files with 29 additions and 1 deletions

8
.gitignore vendored Normal file
View File

@@ -0,0 +1,8 @@
# Ignore IDE files
.idea/
!.idea/icon.png
.vscode/
*.suo
*.user
*.userossc
*.sln.docstates

View File

@@ -1 +1 @@
# sh 脚本
# Bash 脚本

View File

View File

View File

20
web/deploy-note.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
# 定义变量
REPO_URL="https://git.sugarscat.cn/me/note"
TARGET_DIR="/var/www/note"
DIST_DIR=".vitepress/dist"
# 下载最新构建产物
curl -L -o artifact.zip "$REPO_URL/-/jobs/artifacts/main/download?job=build"
# 解压产物
unzip artifact.zip -d artifact
# 移动文件到目标目录
sudo mv artifact/$DIST_DIR/* $TARGET_DIR
# 清理文件
rm -rf artifact.zip artifact
echo "操作完成!"