Skip to content

Commit 5de9c53

Browse files
authored
Merge pull request #455 from consideRatio/pr/upgrade-artifact-upload
ci: upgrade to v4 of upload/download-artifact actions
2 parents 5622083 + 995080e commit 5de9c53

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/publish.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,16 @@ jobs:
6868
sha256sum * | tee SHA256SUMS
6969
7070
- name: Upload Python artifact
71-
uses: actions/upload-artifact@v3
71+
uses: actions/upload-artifact@v4
7272
with:
73-
name: dist
73+
name: dist-${{ github.run_attempt }}
7474
path: dist
7575
if-no-files-found: error
7676

7777
- name: Upload Javascript artifact
78-
uses: actions/upload-artifact@v3
78+
uses: actions/upload-artifact@v4
7979
with:
80-
name: jsdist
80+
name: jsdist-${{ github.run_attempt }}
8181
path: jsdist
8282
if-no-files-found: error
8383

@@ -93,9 +93,9 @@ jobs:
9393
python-version: "3.11"
9494

9595
- name: Download artifacts from build
96-
uses: actions/download-artifact@v3
96+
uses: actions/download-artifact@v4
9797
with:
98-
name: dist
98+
name: dist-${{ github.run_attempt }}
9999
path: dist
100100

101101
# The PyPI publishing action will try to publish this checksum file as if
@@ -125,9 +125,9 @@ jobs:
125125
registry-url: https://registry.npmjs.org
126126

127127
- name: Download artifacts from build
128-
uses: actions/download-artifact@v3
128+
uses: actions/download-artifact@v4
129129
with:
130-
name: jsdist
130+
name: jsdist-${{ github.run_attempt }}
131131
path: jsdist
132132

133133
- run: |

.github/workflows/test.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ jobs:
5353
run: pyproject-build
5454

5555
- name: Upload built artifacts
56-
uses: actions/upload-artifact@v3
56+
uses: actions/upload-artifact@v4
5757
with:
58-
name: dist-${{ github.run_number }}
58+
name: dist-${{ github.run_attempt }}
5959
path: ./dist
6060

6161
test:
@@ -94,9 +94,9 @@ jobs:
9494
run: pip install --upgrade pip
9595

9696
- name: Download built artifacts
97-
uses: actions/download-artifact@v3
97+
uses: actions/download-artifact@v4
9898
with:
99-
name: dist-${{ github.run_number }}
99+
name: dist-${{ github.run_attempt }}
100100
path: ./dist
101101

102102
- name: Install Python package
@@ -152,10 +152,10 @@ jobs:
152152
153153
- name: Upload test reports
154154
if: always()
155-
uses: actions/upload-artifact@v3
155+
uses: actions/upload-artifact@v4
156156
with:
157157
name: |-
158-
tests-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.pip-extras }}-${{ github.run_number }}
158+
tests-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.pip-extras }}-${{ github.run_attempt }}
159159
path: |
160160
./build/pytest
161161
./build/coverage

0 commit comments

Comments
 (0)