From f9153409693fd5e22cfea8e822c8298d032683d8 Mon Sep 17 00:00:00 2001 From: miu <205594122@qq.com> Date: Sun, 15 Mar 2026 22:57:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.github/workflows/build-ex?= =?UTF-8?q?e.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v1.0 --- .github/workflows/build-exe.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-exe.yml b/.github/workflows/build-exe.yml index 182b8b9..d209193 100644 --- a/.github/workflows/build-exe.yml +++ b/.github/workflows/build-exe.yml @@ -115,4 +115,20 @@ jobs: uses: christopherhx/gitea-upload-artifact@v4 # 关键修复! with: name: Shortcut_Sync_PotPlayer - path: dist/Shortcut_Sync_PotPlayer.exe \ No newline at end of file + path: dist/Shortcut_Sync_PotPlayer.exe + + - name: Create Release and Upload Asset + # 使用专门为 Gitea 开发的 release action + # 这是一个在 Gitea 生态中广泛使用的版本 [citation:2][citation:5] + uses: https://gitea.com/actions/release-action@main + with: + # 文件路径:指向你 PyInstaller 生成的 EXE 文件 + files: dist/Shortcut_Sync_PotPlayer.exe + # API 密钥:使用 Gitea 自动提供的 token,用于认证 + api_key: '${{ secrets.GITHUB_TOKEN }}' + # 可选:设置 Release 的标题,默认会使用 tag 名称 + name: 'Release ${{ github.ref_name }}' + # 可选:是否为草稿 (true/false) + draft: false + # 可选:是否为预发布 (true/false) + prerelease: false \ No newline at end of file