mirror of
https://github.com/ayflying/p2p.git
synced 2026-03-04 17:29:22 +00:00
Simplify artifact handling in release workflow
Removed Gitea-specific artifact upload and download steps, simplifying the workflow.
This commit is contained in:
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user