Skip to content

Commit 4c0b4ca

Browse files
committed
ci: update upload and download actions
- upload uses unique names for artifacts - download merges unique artifacts to single loc
1 parent 78b2ed6 commit 4c0b4ca

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ jobs:
183183
- name: Upload artifact
184184
uses: actions/upload-artifact@v4
185185
with:
186-
name: ${{ env.FPM_RELEASE }}
186+
name: ${{ env.FPM_RELEASE }}-${{ matrix.os-arch }}
187187
path: ${{ env.FPM_RELEASE }}
188188

189189

@@ -197,9 +197,10 @@ jobs:
197197
- uses: actions/checkout@v4
198198

199199
- name: Download Artifacts
200-
uses: actions/download-artifact@v2
200+
uses: actions/download-artifact@v4
201201
with:
202-
path: ${{ github.workspace }} # This will download all files
202+
path: ${{ github.workspace }}
203+
merge-multiple: true
203204

204205
- name: Get version (normal)
205206
if: github.event_name != 'release'
@@ -281,9 +282,10 @@ jobs:
281282
if: ${{ github.event_name == 'push' }}
282283

283284
- name: Download Artifacts
284-
uses: actions/download-artifact@v2
285+
uses: actions/download-artifact@v4
285286
with:
286-
path: ${{ github.workspace }} # This will download all files
287+
path: ${{ github.workspace }}
288+
merge-multiple: true
287289

288290
- name: Normalize file names for continuous delivery
289291
if: ${{ github.event_name == 'push' }}

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,10 @@ jobs:
128128
if: ${{ github.event_name == 'push' }}
129129

130130
- name: Download Artifacts
131-
uses: actions/download-artifact@v2
131+
uses: actions/download-artifact@v4
132132
with:
133-
path: ${{ github.workspace }} # This will download all files
133+
path: ${{ github.workspace }}
134+
merge-multiple: true
134135

135136
- name: Normalize file names for continuous delivery
136137
if: ${{ github.event_name == 'push' }}

0 commit comments

Comments
 (0)