mirror of
https://github.com/ddaodan/bgi-scripts.git
synced 2025-11-02 05:54:13 +08:00
Compare commits
7 Commits
32a67fd30c
...
8834383338
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8834383338 | ||
|
|
eab6990c1e | ||
|
|
244c0d585e | ||
|
|
d59ea810c1 | ||
|
|
2af684e55d | ||
|
|
ad6289ce08 | ||
|
|
9c28b44b26 |
88
.github/workflows/build_release_branch.yml
vendored
Normal file
88
.github/workflows/build_release_branch.yml
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
name: Scheduled Build and Release
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# 每天下午18点执行 (UTC时间10点)
|
||||
- cron: '0 10 * * *'
|
||||
workflow_dispatch: # 允许手动触发
|
||||
|
||||
jobs:
|
||||
build-and-release:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository_owner == 'ddaodan'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
actions: read
|
||||
|
||||
steps:
|
||||
- name: 📥 检出代码仓库
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: bettergi-scripts-list
|
||||
fetch-depth: 0
|
||||
|
||||
- name: 🚀 配置 Node.js 环境
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
|
||||
- name: 🔨 构建项目并生成文件
|
||||
run: |
|
||||
echo "🔄 开始构建项目..."
|
||||
cd bettergi-scripts-list
|
||||
echo "📦 执行构建脚本 (强制模式 + Gzip压缩)"
|
||||
node ./build/build.js --force --gzip
|
||||
echo "✅ 项目构建完成"
|
||||
|
||||
- name: 📋 复制生成的文件到工作目录
|
||||
run: |
|
||||
echo "📂 复制 repo.json 和 repo.json.gz 文件..."
|
||||
cp bettergi-scripts-list/repo.json .
|
||||
cp bettergi-scripts-list/repo.json.gz .
|
||||
echo "✅ 文件复制完成"
|
||||
ls -la *.json*
|
||||
|
||||
- name: 🧹 清理工作目录变更
|
||||
run: |
|
||||
echo "🔄 清理 bettergi-scripts-list 目录中的变更..."
|
||||
cd bettergi-scripts-list
|
||||
git checkout -- .
|
||||
git clean -fd
|
||||
echo "✅ 工作目录清理完成"
|
||||
|
||||
- name: 🌿 准备 Release 分支
|
||||
run: |
|
||||
echo "🔄 开始准备 Release 分支..."
|
||||
cd bettergi-scripts-list
|
||||
|
||||
echo "🗑️ 删除本地 release 分支(如果存在)"
|
||||
git branch -D release || true
|
||||
|
||||
echo "🆕 创建新的 orphan 分支"
|
||||
git checkout --orphan release
|
||||
git rm -rf .
|
||||
|
||||
echo "📦 检出 main 分支的内容到工作区"
|
||||
git checkout main -- repo .gitignore
|
||||
|
||||
echo "📋 复制生成的文件到 release 分支"
|
||||
cp ../repo.json .
|
||||
cp ../repo.json.gz .
|
||||
|
||||
echo "📊 显示当前文件状态"
|
||||
ls -la
|
||||
echo "✅ Release 分支准备完成"
|
||||
|
||||
- name: 🚀 提交并推送到 Release 分支
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: "rebuild release branch"
|
||||
branch: release
|
||||
push_options: '--force'
|
||||
repository: bettergi-scripts-list
|
||||
file_pattern: .
|
||||
skip_dirty_check: true
|
||||
skip_fetch: false
|
||||
skip_checkout: true
|
||||
create_branch: false
|
||||
32
.gitignore
vendored
Normal file
32
.gitignore
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
repo/js/**/*.txt
|
||||
repo/pathing/**/*.txt
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
.DS_Store
|
||||
dist
|
||||
dist-ssr
|
||||
coverage
|
||||
*.local
|
||||
|
||||
/cypress/videos/
|
||||
/cypress/screenshots/
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
.vs/
|
||||
*.tsbuildinfo
|
||||
18
repo.json
18
repo.json
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"time": "20250915192402",
|
||||
"time": "20250923185007",
|
||||
"url": "https://github.com/babalae/bettergi-scripts-list/archive/refs/heads/main.zip",
|
||||
"file": "repo.json",
|
||||
"indexes": [
|
||||
@@ -43,7 +43,7 @@
|
||||
"tags": [
|
||||
"bgi≥0.45.0"
|
||||
],
|
||||
"lastUpdated": "2025-09-15 19:23:50"
|
||||
"lastUpdated": "2025-09-15 11:24:03"
|
||||
},
|
||||
{
|
||||
"name": "兰那罗-3-兰陀尼什.json",
|
||||
@@ -126,7 +126,7 @@
|
||||
"bgi≥0.45.0",
|
||||
"战斗"
|
||||
],
|
||||
"lastUpdated": "2025-09-15 19:23:50"
|
||||
"lastUpdated": "2025-09-15 11:24:03"
|
||||
},
|
||||
{
|
||||
"name": "兰那罗-5-冒失的兰那罗.json",
|
||||
@@ -167,7 +167,7 @@
|
||||
"战斗",
|
||||
"有日志"
|
||||
],
|
||||
"lastUpdated": "2025-09-15 19:23:50"
|
||||
"lastUpdated": "2025-09-15 11:24:03"
|
||||
},
|
||||
{
|
||||
"name": "兰那罗-14-收集材料的兰那罗.json",
|
||||
@@ -239,7 +239,7 @@
|
||||
"四叶印",
|
||||
"有日志"
|
||||
],
|
||||
"lastUpdated": "2025-09-15 19:23:50"
|
||||
"lastUpdated": "2025-09-15 11:24:03"
|
||||
},
|
||||
{
|
||||
"name": "兰那罗-6-爱音乐的兰那罗.json",
|
||||
@@ -305,7 +305,7 @@
|
||||
"tags": [
|
||||
"bgi≥0.47.2"
|
||||
],
|
||||
"lastUpdated": "2025-09-15 19:23:50"
|
||||
"lastUpdated": "2025-09-15 11:24:03"
|
||||
},
|
||||
{
|
||||
"name": "兰那罗-19-迷茫的兰那罗.json",
|
||||
@@ -338,7 +338,7 @@
|
||||
"bgi≥0.45.0",
|
||||
"有日志"
|
||||
],
|
||||
"lastUpdated": "2025-09-15 19:23:50"
|
||||
"lastUpdated": "2025-09-15 11:24:03"
|
||||
},
|
||||
{
|
||||
"name": "兰那罗-7-迷茫的兰那罗.json",
|
||||
@@ -371,7 +371,7 @@
|
||||
"bgi≥0.47.2",
|
||||
"战斗"
|
||||
],
|
||||
"lastUpdated": "2025-09-15 19:23:50"
|
||||
"lastUpdated": "2025-09-15 11:24:03"
|
||||
},
|
||||
{
|
||||
"name": "兰那罗-9-迷茫的兰那罗.json",
|
||||
@@ -387,7 +387,7 @@
|
||||
"tags": [
|
||||
"bgi≥0.47.2"
|
||||
],
|
||||
"lastUpdated": "2025-09-15 19:23:50"
|
||||
"lastUpdated": "2025-09-15 11:24:03"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user