Skip to content

Commit 29fa643

Browse files
author
dompling
committed
update
1 parent e1baa98 commit 29fa643

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/build-release.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -195,22 +195,18 @@ jobs:
195195
fi
196196
197197
echo "📦 Found TIPA: $TIPA_FILE"
198-
199-
# 准备上传文件
200-
UPLOAD_FILES="$TIPA_FILE"
201-
[ -f "$LATEST_FILE" ] && UPLOAD_FILES="$UPLOAD_FILES $LATEST_FILE"
202-
198+
203199
# 删除已存在的 release(如果有)
204200
if gh release view "$RELEASE_TAG" &>/dev/null; then
205201
echo "⚠️ Release $RELEASE_TAG exists, deleting..."
206202
gh release delete "$RELEASE_TAG" --yes || true
207203
# 删除对应的 tag
208204
git push origin :refs/tags/$RELEASE_TAG 2>/dev/null || true
209205
fi
210-
211-
# 创建新 release(会自动创建 tag
206+
207+
# 创建新 release(只上传版本号文件
212208
gh release create "$RELEASE_TAG" \
213-
$UPLOAD_FILES \
209+
"$TIPA_FILE" \
214210
--title "🧙 TrollScript $RELEASE_TAG" \
215211
--notes-file release-notes.md \
216212
--draft=false \

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea
2+
*.xcworkspace
3+
*.xcodeproj

0 commit comments

Comments
 (0)