Skip to content

Commit 8bfebd3

Browse files
committed
Update CI/CD
1 parent cc81dd4 commit 8bfebd3

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

.github/workflows/wheels.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,55 +10,54 @@ jobs:
1010
name: Build wheels
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

1515
- name: Build wheels
1616
run: pipx run build --wheel
1717

18-
- uses: actions/upload-artifact@v3
18+
- uses: actions/upload-artifact@v4
1919
with:
20+
name: artifact-wheels
2021
path: dist/*.whl
2122

2223
build_sdist:
2324
name: Build source distribution
2425
runs-on: ubuntu-latest
2526
steps:
26-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2728

2829
- name: Build sdist
2930
run: pipx run build --sdist
3031

31-
- uses: actions/upload-artifact@v3
32+
- uses: actions/upload-artifact@v4
3233
with:
34+
name: artifact-sdist
3335
path: dist/*.tar.gz
3436

3537
upload_pypi:
3638
needs: [build_wheels, build_sdist]
3739
runs-on: ubuntu-latest
40+
environment: release
41+
permissions:
42+
id-token: write
3843
steps:
39-
- uses: actions/download-artifact@v3
44+
- uses: actions/download-artifact@v4
4045
with:
41-
# unpacks default artifact into dist/
42-
# if `name: artifact` is omitted, the action will create extra parent dir
43-
name: artifact
46+
pattern: artifact-*
4447
path: dist
48+
merge-multiple: true
4549

46-
- uses: pypa/[email protected]
47-
with:
48-
user: __token__
49-
password: ${{ secrets.pypi_password }}
50-
skip-existing: true
50+
- uses: pypa/gh-action-pypi-publish@release/v1
5151

5252
upload_release:
5353
needs: [build_wheels, build_sdist]
5454
runs-on: ubuntu-latest
5555
steps:
56-
- uses: actions/download-artifact@v3
56+
- uses: actions/download-artifact@v4
5757
with:
58-
# unpacks default artifact into dist/
59-
# if `name: artifact` is omitted, the action will create extra parent dir
60-
name: artifact
58+
pattern: artifact-*
6159
path: dist
60+
merge-multiple: true
6261

6362
- name: Release
6463
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)