fix: 移除多余的 name 参数
Android Release (Signed) / release (push) Successful in 47s

This commit is contained in:
CI Bot
2026-06-02 19:48:14 +08:00
parent 36d42df9e8
commit 2f77a48848
+2 -3
View File
@@ -100,12 +100,11 @@ jobs:
echo "Release ID: ${{ env.RELEASE_ID }}"
# Gitea 上传 API: POST /repos/{owner}/{repo}/releases/{id}/assets
# 注意:Gitea 只需要 attachment 参数,文件名从文件自动获取
UPLOAD_RESPONSE=$(curl -s -X POST \
"https://gitea.kg8.net/api/v1/repos/${{ github.repository }}/releases/${{ env.RELEASE_ID }}/assets" \
-H "Authorization: token ${{ secrets.ACTIONS_TOKEN }}" \
-H "Content-Type: application/vnd.android.package-archive" \
-F "attachment=@app/build/outputs/apk/release/${{ env.APK_NAME }}" \
-F "name=${{ env.APK_NAME }}")
-F "attachment=@app/build/outputs/apk/release/${{ env.APK_NAME }}")
echo "上传响应: $UPLOAD_RESPONSE"