Skip to content

Commit e522ec5

Browse files
tdiclaude
andcommitted
Fix GitHub Actions artifact upload deprecation
- Update upload-artifact from v3 to v4 in release.yml - Update download-artifact from v3 to v4 in release.yml - Update upload-artifact to v4 in publish.yml - Use unique artifact names with target suffix to avoid conflicts - Add merge-multiple flag for downloading artifacts Fixes the "deprecated version" errors that were causing workflow failures. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 1da4e84 commit e522ec5

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ jobs:
172172
173173
- name: Upload artifacts (manual trigger)
174174
if: github.event_name == 'workflow_dispatch'
175-
uses: actions/upload-artifact@v3
175+
uses: actions/upload-artifact@v4
176176
with:
177-
name: binaries-${{ matrix.asset_name }}
177+
name: binaries-${{ matrix.target }}
178178
path: |
179179
${{ matrix.asset_name }}.tar.gz
180180
${{ matrix.asset_name }}.tar.gz.sha256

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ jobs:
7777
sha256sum ${{ matrix.asset_name }}.tar.gz > ${{ matrix.asset_name }}.tar.gz.sha256
7878
7979
- name: Upload artifacts
80-
uses: actions/upload-artifact@v3
80+
uses: actions/upload-artifact@v4
8181
with:
82-
name: binaries
82+
name: binaries-${{ matrix.target }}
8383
path: |
8484
*.tar.gz
8585
*.tar.gz.sha256
@@ -92,10 +92,11 @@ jobs:
9292
- uses: actions/checkout@v4
9393

9494
- name: Download artifacts
95-
uses: actions/download-artifact@v3
95+
uses: actions/download-artifact@v4
9696
with:
97-
name: binaries
9897
path: ./artifacts
98+
pattern: binaries-*
99+
merge-multiple: true
99100

100101
- name: Extract version
101102
id: get_version

0 commit comments

Comments
 (0)