File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 1010
1111jobs :
1212 upload_pypi :
13- uses : explosion/gha-cibuildwheel/.github/workflows/publish_pypi.yml@main
14- with :
15- pypi-package-name : ' confection'
13+ runs-on : ubuntu-latest
14+ environment :
15+ name : pypi
16+ url : https://pypi.org/p/confection
17+ permissions :
18+ id-token : write
19+ contents : read
20+ if : github.event_name == 'release' && github.event.action == 'published'
21+ # or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this)
22+ # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
23+ steps :
24+ - uses : robinraju/release-downloader@v1
25+ with :
26+ tag : ${{ github.event.release.tag_name }}
27+ fileName : ' *'
28+ out-file-path : ' dist'
29+ - uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments