Skip to content

Commit fad5608

Browse files
committed
adjust publish.yml to publish specific tag
1 parent 7836496 commit fad5608

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/pypipublish.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
name: Publish Python
22

3+
# on:
4+
# release:
5+
# types: [published]
6+
7+
38
on:
4-
release:
5-
types: [published]
9+
push:
10+
tags:
11+
- 'v*' # Only triggers on tags starting with 'v', like 'v1.0.0'
612

713
jobs:
814
tests:
@@ -34,11 +40,11 @@ jobs:
3440
--wheel
3541
--outdir dist/
3642
.
37-
- name: Publish distribution 📦 to Test PyPI
38-
uses: pypa/gh-action-pypi-publish@release/v1
39-
with:
40-
password: ${{ secrets.PYPI_TEST_KEY }}
41-
repository_url: https://test.pypi.org/legacy/
43+
# - name: Publish distribution 📦 to Test PyPI
44+
# uses: pypa/gh-action-pypi-publish@release/v1
45+
# with:
46+
# password: ${{ secrets.PYPI_TEST_KEY }}
47+
# repository_url: https://test.pypi.org/legacy/
4248
- name: Publish distribution 📦 to PyPI
4349
uses: pypa/gh-action-pypi-publish@release/v1
4450
with:

0 commit comments

Comments
 (0)