build: 🏗️ 构建与校验

This commit is contained in:
log1997
2025-12-31 09:25:41 +08:00
parent 56bf832cd1
commit 4b8c277374
2 changed files with 13 additions and 23 deletions

View File

@@ -62,16 +62,6 @@ jobs:
name: github-pages
path: dist-gh-pages
- name: Prepare GitHub Pages artifact
run: |
cp -r dist-prod dist-gh-pages
- name: Upload GitHub Pages artifact
uses: actions/upload-artifact@v4
with:
name: github-pages
path: dist-gh-pages
publish-tauri:
permissions:
contents: write

View File

@@ -37,9 +37,9 @@ try {
console.error('无法获取当前分支名称');
process.exit(1);
}
console.log(`当前分支为: ${currentBranch}`);
// 检查当前分支是否为 release 分支
if (currentBranch.startsWith('release/')) {
if (currentBranch.startsWith('release')) {
// 如果当前在 release 分支上,检查当前分支的 HEAD 提交是否与 tag 指向的提交一致
const currentBranchCommit = execSync(`git rev-parse ${currentBranch}`, { encoding: 'utf-8' }).trim();