Skip to content

Commit 1d292ba

Browse files
authored
Merge branch 'dev' into build/optimize-native-build
2 parents e239f14 + c5f9383 commit 1d292ba

17 files changed

Lines changed: 777 additions & 519 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,24 @@ jobs:
6565
# 强制推送到远程
6666
git push -f origin dev-nightly
6767
68+
# 复制环境变量文件
69+
- name: Copy .env file on Windows
70+
if: runner.os == 'Windows'
71+
run: |
72+
if (-not (Test-Path .env)) {
73+
Copy-Item .env.example .env
74+
} else {
75+
Write-Host ".env file already exists. Skipping the copy step."
76+
}
77+
- name: Copy .env file on macOS & Linux
78+
if: runner.os == 'macOS' || runner.os == 'Linux'
79+
run: |
80+
if [ ! -f .env ]; then
81+
cp .env.example .env
82+
else
83+
echo ".env file already exists. Skipping the copy step."
84+
fi
85+
6886
- name: Setup pnpm
6987
uses: pnpm/action-setup@v3
7088
with:
@@ -193,8 +211,19 @@ jobs:
193211
fi
194212
fi
195213
214+
# 构建 Release Body
215+
{
216+
echo "> [!WARNING]"
217+
echo "> "
218+
echo "> 这是一个自动生成的 Nightly 构建版本。它可能包含 Bug,仅供测试使用。使用风险自负。"
219+
echo ""
220+
echo "## 自上次构建以来的变更:"
221+
echo ""
222+
echo "$NOTES"
223+
} > release_notes.md
224+
196225
# 更新 Release Body
197-
# gh release edit nightly --notes "## Nightly Build Update $(date +'%Y-%m-%d')\n\n$NOTES"
226+
gh release edit nightly --notes-file release_notes.md
198227
199228
# 3. 删除旧 Assets 并上传新 Assets
200229
echo "Deleting old assets..."

0 commit comments

Comments
 (0)