From 680d36e526a7154f435788bca7c2695024fa60ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=94=E7=84=B0=E9=98=B3?= <346765799@qq.com> Date: Thu, 6 Nov 2025 17:50:20 +0800 Subject: [PATCH] Simplify artifact handling in release workflow Removed Gitea-specific artifact upload and download steps, simplifying the workflow. --- .github/workflows/release.yml | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b004ea3..edab334 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,17 +44,8 @@ jobs: - name: Build with gf run: gf build -ew -v "${{ github.ref_name }}" - - name: Upload build artifacts (GitHub) - if: contains(github.server_url, 'github.com') - uses: actions/upload-artifact@v4 # GitHub使用v4版本以避免废弃警告 - with: - name: p2p-${{ github.ref_name }} - path: | - bin/** - - - name: Upload build artifacts (Gitea) - if: ${{ github.server_url != 'https://github.com' || env.GITEA_ACTIONS == 'true' }} - uses: actions/upload-artifact@v3 # Gitea使用v3版本以兼容GHES + - name: Upload build artifacts + uses: actions/upload-artifact@v4 # 使用v4版本 with: name: p2p-${{ github.ref_name }} path: | @@ -71,16 +62,8 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Download artifacts (GitHub) - if: contains(github.server_url, 'github.com') - uses: actions/download-artifact@v4 # GitHub使用v4版本以避免废弃警告 - with: - name: p2p-${{ github.ref_name }} - path: bin - - - name: Download artifacts (Gitea) - if: contains(github.server_url, 'gitea') - uses: actions/download-artifact@v3 # Gitea使用v3版本以兼容GHES + - name: Download artifacts + uses: actions/download-artifact@v4 # 使用v4版本 with: name: p2p-${{ github.ref_name }} path: bin