Skip to content

Commit 760bda0

Browse files
committed
testing deploy ci
1 parent 8094fa2 commit 760bda0

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Python package
33
on:
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 }}

0 commit comments

Comments
 (0)