build: 🏗️ 构建与校验
This commit is contained in:
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user