1 Commits

Author SHA1 Message Date
乔焰阳
680d36e526 Simplify artifact handling in release workflow
Removed Gitea-specific artifact upload and download steps, simplifying the workflow.
2025-11-06 17:50:20 +08:00

View File

@@ -44,17 +44,8 @@ jobs:
- name: Build with gf - name: Build with gf
run: gf build -ew -v "${{ github.ref_name }}" run: gf build -ew -v "${{ github.ref_name }}"
- name: Upload build artifacts (GitHub) - name: Upload build artifacts
if: contains(github.server_url, 'github.com') uses: actions/upload-artifact@v4 # 使用v4版本
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
with: with:
name: p2p-${{ github.ref_name }} name: p2p-${{ github.ref_name }}
path: | path: |
@@ -71,16 +62,8 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Download artifacts (GitHub) - name: Download artifacts
if: contains(github.server_url, 'github.com') uses: actions/download-artifact@v4 # 使用v4版本
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
with: with:
name: p2p-${{ github.ref_name }} name: p2p-${{ github.ref_name }}
path: bin path: bin