File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: Python package
33on :
44 push :
55 branches : [ master ]
6+ tags : [ 'v*' ] # run when pushing v1.2.3-style tags
67 pull_request :
78 branches : [ master ]
89 release :
@@ -154,10 +155,10 @@ jobs:
154155 name : deploy
155156 steps :
156157 - uses : actions/checkout@v4
157- - name : Set up Python ${{ matrix.python-version }}
158+ - name : Set up Python 3.11
158159 uses : actions/setup-python@v5
159160 with :
160- python-version : ${{ matrix.python-version }}
161+ python-version : ' 3.11 '
161162 - name : " Install"
162163 run : |
163164 python -m pip install --upgrade pip;
@@ -167,8 +168,9 @@ jobs:
167168 with :
168169 name : dist
169170 path : dist
170- - uses : pypa/gh-action-pypi-publish@release/v1
171+ - name : Publish to PyPI (tags only)
171172 if : startsWith(github.ref, 'refs/tags/v')
173+ uses : pypa/gh-action-pypi-publish@release/v1
172174 with :
173175 user : __token__
174176 password : ${{ secrets.PYPI_PASSWORD }}
You can’t perform that action at this time.
0 commit comments