更新README.md,删除无用的.gitkeep文件,添加新的apt源列表和.gitignore文件,新增部署脚本
This commit is contained in:
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
# Ignore IDE files
|
||||
.idea/
|
||||
!.idea/icon.png
|
||||
.vscode/
|
||||
*.suo
|
||||
*.user
|
||||
*.userossc
|
||||
*.sln.docstates
|
||||
20
web/deploy-note.sh
Normal file
20
web/deploy-note.sh
Normal 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 "操作完成!"
|
||||
Reference in New Issue
Block a user