Skip to content

Commit 8a3a58d

Browse files
author
Jonas Blixt
committed
build: update github actions
upload-artifact v3 has been deprecated.
1 parent 1a81930 commit 8a3a58d

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/punchboot-tools.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ jobs:
5555
output-dir: wheelhouse
5656
config-file: "pyproject.toml"
5757

58-
- uses: actions/upload-artifact@v3
58+
- uses: actions/upload-artifact@v4
5959
with:
60+
name: punchboot-tools-${{ strategy.job-index }}
6061
path: ./wheelhouse/*.whl
6162

6263
build_sdist:
@@ -68,8 +69,9 @@ jobs:
6869
- name: Build sdist
6970
run: pipx run build --sdist
7071

71-
- uses: actions/upload-artifact@v3
72+
- uses: actions/upload-artifact@v4
7273
with:
74+
name: punchboot-tools-sdist
7375
path: dist/*.tar.gz
7476

7577
upload_pypi_test:
@@ -81,16 +83,17 @@ jobs:
8183
id-token: write
8284
if: github.repository == 'jonasblixt/punchboot' && github.event_name == 'workflow_dispatch'
8385
steps:
84-
- uses: actions/download-artifact@v3
86+
- uses: actions/download-artifact@v4
8587
with:
86-
name: artifact
87-
path: dist
88+
pattern: punchboot-tools-*
89+
merge-multiple: true
8890
- uses: pypa/[email protected]
8991
with:
9092
user: __token__
9193
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
9294
repository_url: https://test.pypi.org/legacy/
9395
skip_existing: true
96+
packages_dir: ./
9497

9598
upload_pypi:
9699
name: Upload to PyPi
@@ -101,7 +104,7 @@ jobs:
101104
id-token: write
102105
if: github.repository == 'jonasblixt/punchboot' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
103106
steps:
104-
- uses: actions/download-artifact@v3
107+
- uses: actions/download-artifact@v4
105108
with:
106109
name: artifact
107110
path: dist
@@ -110,3 +113,4 @@ jobs:
110113
user: __token__
111114
password: ${{ secrets.PYPI_API_TOKEN }}
112115
skip_existing: true
116+
packages_dir: ./

0 commit comments

Comments
 (0)