File tree Expand file tree Collapse file tree 1 file changed +27
-7
lines changed
Expand file tree Collapse file tree 1 file changed +27
-7
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,40 @@ on: push
33jobs :
44 build :
55 runs-on : ubuntu-latest
6- permissions :
7- id-token : write
86 steps :
97 - uses : actions/checkout@v4
108 - uses : actions/setup-python@v5
119 with :
1210 python-version : ' 3.10'
1311 - run : pip install --upgrade build
1412 - run : python -m build --sdist --wheel
15- - name : Publish to TestPyPI
16- uses : pypa/gh-action-pypi-publish@release/v1
13+ - uses : actions/upload-artifact@v4
14+ with :
15+ name : python-package-distributions
16+ path : dist/
17+ test :
18+ needs : build
19+ permissions :
20+ id-token : write
21+ runs-on : ubuntu-latest
22+ steps :
23+ - uses : actions/download-artifact@v4
24+ with :
25+ name : python-package-distributions
26+ path : dist/
27+ - uses : pypa/gh-action-pypi-publish@release/v1
1728 with :
1829 repository-url : https://test.pypi.org/legacy/
1930 skip-existing : true
20- - name : Publish to PyPI
21- if : startsWith(github.ref, 'refs/tags')
22- uses : pypa/gh-action-pypi-publish@release/v1
31+ publish :
32+ if : startsWith(github.ref, 'refs/tags/')
33+ needs : test
34+ permissions :
35+ id-token : write
36+ runs-on : ubuntu-latest
37+ steps :
38+ - uses : actions/download-artifact@v4
39+ with :
40+ name : python-package-distributions
41+ path : dist/
42+ - uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments