Skip to content

Commit

Permalink
Give artifacts unique names.
Browse files Browse the repository at this point in the history
Rationale: v4 of upload-artifact action fails when an artifact with the same name already exists on the workflow run.

See also: actions/upload-artifact#480
  • Loading branch information
ronaldvanmanen committed Dec 27, 2024
1 parent b33d1ed commit e0cfc7d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
shell: cmd
- uses: actions/upload-artifact@v4
with:
name: artifacts
name: artifacts-windows-${{ strategy.job-index }}
path: .\artifacts\pkg\**\*
if-no-files-found: error
build-linux:
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
shell: bash
- uses: actions/upload-artifact@v4
with:
name: artifacts
name: artifacts-linux-${{ strategy.job-index }}
path: ./artifacts/pkg/**/*
if-no-files-found: error
build-multiplatform:
Expand All @@ -85,7 +85,7 @@ jobs:
shell: cmd
- uses: actions/upload-artifact@v4
with:
name: artifacts
name: artifacts-multiplatform
path: .\artifacts\pkg\**\*
if-no-files-found: error
publish-artifacts-on-azure:
Expand All @@ -95,7 +95,8 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: artifacts
pattern: artifacts-*
merge-multiple: true
path: ./artifacts
- uses: actions/setup-dotnet@v3
with:
Expand All @@ -113,7 +114,8 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: artifacts
pattern: artifacts-*
merge-multiple: true
path: ./artifacts
- uses: actions/setup-dotnet@v3
with:
Expand Down

0 comments on commit e0cfc7d

Please sign in to comment.