Skip to content

Commit 3a28398

Browse files
committed
ci: use upload-artifact@v4 for release publishing
We can no longer upload to the same named artifact across multiple jobs. So we need to incorporate the build optimization level into the artifact name. I think release automation will continue to work since we iterate over every artifact, download, and inspect the files within. But there is a chance we need to tweak release automation to account for this change.
1 parent 17099a3 commit 3a28398

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/apple.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ jobs:
195195
./build-macos.py --target-triple ${{ matrix.build.target_triple }} --python ${{ matrix.build.py }} --optimizations ${{ matrix.build.optimizations }}
196196
197197
- name: Upload Distributions
198-
uses: actions/upload-artifact@v3
198+
uses: actions/upload-artifact@v4
199199
with:
200-
name: ${{ matrix.build.py }}-${{ matrix.build.target_triple }}
200+
name: ${{ matrix.build.py }}-${{ matrix.build.target_triple }}-${{ matrix.build.optimizations }}
201201
path: dist/*
202202

203203
- uses: actions/checkout@v4

.github/workflows/linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ jobs:
947947
build/pythonbuild validate-distribution ${EXTRA_ARGS} dist/*.tar.zst
948948
949949
- name: Upload Distribution
950-
uses: actions/upload-artifact@v3
950+
uses: actions/upload-artifact@v4
951951
with:
952-
name: ${{ matrix.build.py }}-${{ matrix.build.target_triple }}
952+
name: ${{ matrix.build.py }}-${{ matrix.build.target_triple }}-${{ matrix.build.optimizations }}
953953
path: dist/*

.github/workflows/windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
.\pythonbuild.exe validate-distribution --run $Dists
9393
9494
- name: Upload Distributions
95-
uses: actions/upload-artifact@v3
95+
uses: actions/upload-artifact@v4
9696
with:
97-
name: ${{ matrix.py }}-${{ matrix.vcvars }}
97+
name: ${{ matrix.py }}-${{ matrix.vcvars }}-${{ matrix.profile }}
9898
path: dist/*

0 commit comments

Comments
 (0)