Skip to content

Commit 831698e

Browse files
committed
Added check for tag
1 parent 4fcd197 commit 831698e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/python-publish.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ permissions:
1818

1919
jobs:
2020
deploy:
21+
if: "success() && startsWith(github.ref, 'refs/tags/')"
2122
runs-on: ubuntu-latest
2223

2324
steps:
@@ -30,14 +31,14 @@ jobs:
3031
run: |
3132
python -m pip install --upgrade pip
3233
pip install build
33-
- name: Build package
34-
run: python -m build
3534
- name: check tag
3635
id: check-tag
3736
run: python check_tag.py
37+
- name: Build package
38+
run: python -m build
3839
- name: Publish package
3940
uses: pypa/[email protected]
4041
with:
4142
user: __token__
42-
password: ${{ secrets.TEST_PYPI_TOKEN }}
43+
password: ${{ secrets.PYPI_API_TOKEN }}
4344
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)