Skip to content

Commit ff789d9

Browse files
committed
Update CI/CD
1 parent cc81dd4 commit ff789d9

File tree

1 file changed

+20
-23
lines changed

1 file changed

+20
-23
lines changed

.github/workflows/wheels.yml

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,55 +10,52 @@ 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:
2020
path: dist/*.whl
2121

2222
build_sdist:
2323
name: Build source distribution
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727

2828
- name: Build sdist
2929
run: pipx run build --sdist
3030

31-
- uses: actions/upload-artifact@v3
31+
- uses: actions/upload-artifact@v4
3232
with:
3333
path: dist/*.tar.gz
3434

35-
upload_pypi:
36-
needs: [build_wheels, build_sdist]
37-
runs-on: ubuntu-latest
38-
steps:
39-
- uses: actions/download-artifact@v3
40-
with:
41-
# unpacks default artifact into dist/
42-
# if `name: artifact` is omitted, the action will create extra parent dir
43-
name: artifact
44-
path: dist
45-
46-
- uses: pypa/[email protected]
47-
with:
48-
user: __token__
49-
password: ${{ secrets.pypi_password }}
50-
skip-existing: true
35+
# upload_pypi:
36+
# needs: [build_wheels, build_sdist]
37+
# runs-on: ubuntu-latest
38+
# environment: release
39+
# permissions:
40+
# id-token: write
41+
# steps:
42+
# - uses: actions/download-artifact@v4
43+
# with:
44+
# name: artifact
45+
# path: dist
46+
# merge-multiple: true
47+
48+
# - uses: pypa/gh-action-pypi-publish@release/v1
5149

5250
upload_release:
5351
needs: [build_wheels, build_sdist]
5452
runs-on: ubuntu-latest
5553
steps:
56-
- uses: actions/download-artifact@v3
54+
- uses: actions/download-artifact@v4
5755
with:
58-
# unpacks default artifact into dist/
59-
# if `name: artifact` is omitted, the action will create extra parent dir
6056
name: artifact
6157
path: dist
58+
merge-multiple: true
6259

6360
- name: Release
6461
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)