File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+ on :
3+ release :
4+ types : [ 'published' ]
5+
6+ jobs :
7+ pypi-publish :
8+ name : upload release to PyPI
9+ runs-on : ubuntu-latest
10+ environment : pypi
11+ permissions :
12+ id-token : write
13+ steps :
14+ - name : Setup Python
15+ uses : actions/setup-python@v5
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+ - name : Build package
19+ run : pip install build && python -m build && ls -l dist
20+ - name : Publish package distributions to Test PyPI
21+ uses : pypa/gh-action-pypi-publish@release/v1
22+ continue-on-error : true
23+ with :
24+ repository_url : https://test.pypi.org/legacy/
25+ - name : Publish package distributions to PyPI
26+ if : " !github.event.release.prerelease"
27+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments