File tree 1 file changed +10
-18
lines changed
1 file changed +10
-18
lines changed Original file line number Diff line number Diff line change 60
60
name : Publish wheels on pypi
61
61
needs : [build_wheels, build_sdist]
62
62
runs-on : ubuntu-latest
63
- if : github.event_name == 'release' && github.event.action == 'created'
64
63
steps :
65
- - uses : actions/checkout@v3
66
-
67
- - name : Set up Python 3.11
68
- uses : actions/setup-python@v4
69
- with :
70
- python-version : ' 3.11'
71
-
72
- - name : install requirements
73
- run : pip install twine==4.0.2
74
-
75
64
- uses : actions/download-artifact@v3
76
65
with :
77
66
name : bdist_files
@@ -82,11 +71,14 @@ jobs:
82
71
name : sdist_files
83
72
path : dist
84
73
85
- - name : check
86
- run : twine check dist/*
74
+ - name : Publish package to TestPyPI
75
+ uses : pypa/gh-action-pypi-publish@release/v1
76
+ with :
77
+ password : ${{ secrets.TEST_PYPI_TOKEN }} # TODO: confirm this token exists (or use trusted publishing instead)
78
+ repository-url : https://test.pypi.org/legacy/
87
79
88
- - name : upload
89
- run : twine upload dist/*
90
- env :
91
- TWINE_USERNAME : __token__
92
- TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
80
+ - name : Publish package to PyPI
81
+ uses : pypa/gh-action-pypi-publish@release/v1
82
+ if : github.event_name == 'release' && github.event.action == 'created'
83
+ with :
84
+ password : ${{ secrets.PYPI_TOKEN }}
You can’t perform that action at this time.
0 commit comments