File tree Expand file tree Collapse file tree 1 file changed +22
-22
lines changed
Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,11 @@ name: Build and upload to PyPI
22
33on :
44 workflow_dispatch :
5- pull_request :
65 push :
76 branches :
87 - dev.ej/cibuild
9- release :
10- types :
11- - published
8+ tags :
9+ - v[0-9]+.[0-9]+.[0-9]+
1210
1311permissions :
1412 contents : read
@@ -57,22 +55,24 @@ jobs:
5755 name : cibw-sdist
5856 path : dist/*.tar.gz
5957
60- # upload_pypi:
61- # needs: [build_wheels, build_sdist]
62- # runs-on: ubuntu-latest
63- # environment: pypi
64- # permissions:
65- # id-token: write
66- # if: github.event_name == 'release' && github.event.action == 'published'
58+ upload_pypi :
59+ needs : [build_wheels, build_sdist]
60+ runs-on : ubuntu-latest
61+ environment :
62+ name : testpypi
63+ url : https://test.pypi.org/p/ilt-editdistance
64+ permissions :
65+ id-token : write
66+ # #if: github.event_name == 'release' && github.event.action == 'published'
6767 # # or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this)
68- # # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
69- # steps:
70- # - uses: actions/download-artifact@v5
71- # with:
72- # # unpacks all CIBW artifacts into dist/
73- # pattern: cibw-*
74- # path: dist
75- # merge-multiple: true
76- # - uses: pypa/gh-action-pypi-publish@release/v1
77- # # with:
78- # # To test: repository-url: https://test.pypi.org/legacy/
68+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
69+ steps :
70+ - uses : actions/download-artifact@v5
71+ with :
72+ # unpacks all CIBW artifacts into dist/
73+ pattern : cibw-*
74+ path : dist
75+ merge-multiple : true
76+ - uses : pypa/gh-action-pypi-publish@release/v1
77+ with :
78+ repository-url : https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments