Skip to content

Commit e9c745c

Browse files
committed
add upload to pipy to build workflow
1 parent 89d3fbb commit e9c745c

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.github/workflows/build_wheels.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ jobs:
2020
env:
2121
CIBW_ARCHS: auto64 # Don't build 32 bits wheels
2222
CIBW_SKIP: pp* # Don't build pypy wheels
23-
# with:
24-
# package-dir: .
25-
# output-dir: wheelhouse
26-
# config-file: "{package}/pyproject.toml"
27-
2823
- uses: actions/upload-artifact@v4
2924
with:
3025
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
@@ -43,3 +38,21 @@ jobs:
4338
with:
4439
name: cibw-sdist
4540
path: dist/*.tar.gz
41+
42+
upload_pypi:
43+
needs: [build_wheels, build_sdist]
44+
runs-on: ubuntu-latest
45+
environment: release
46+
permissions:
47+
id-token: write
48+
steps:
49+
- uses: actions/download-artifact@v4
50+
with:
51+
# unpacks all CIBW artifacts into dist/
52+
pattern: cibw-*
53+
path: dist
54+
merge-multiple: true
55+
56+
- uses: pypa/gh-action-pypi-publish@release/v1
57+
with:
58+
# To test: repository-url: https://test.pypi.org/legacy/

.github/workflows/upload_pypi.yml

Whitespace-only changes.

0 commit comments

Comments
 (0)