Skip to content

Commit d7d442d

Browse files
authored
Update publish-pypi.yml
Signed-off-by: Mithun Gowda B <[email protected]>
1 parent fb6294f commit d7d442d

File tree

1 file changed

+3
-29
lines changed

1 file changed

+3
-29
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ name: Publish SuperGemini to PyPI
33
on:
44
push:
55
tags:
6-
- "v*.*.*"
6+
- "v*"
7+
release:
8+
types: [published]
79

810
jobs:
911
build:
@@ -31,31 +33,3 @@ jobs:
3133
with:
3234
user: __token__
3335
password: ${{ secrets.PYPI_API_TOKEN }}
34-
35-
test-publish:
36-
runs-on: ubuntu-latest
37-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
38-
needs: build
39-
steps:
40-
- name: Checkout source
41-
uses: actions/checkout@v4
42-
43-
- name: Set up Python
44-
uses: actions/setup-python@v5
45-
with:
46-
python-version: "3.11"
47-
48-
- name: Install build dependencies
49-
run: |
50-
python -m pip install --upgrade pip
51-
pip install build setuptools wheel twine
52-
53-
- name: Build SuperGemini package
54-
run: python -m build
55-
56-
- name: Publish to TestPyPI
57-
uses: pypa/gh-action-pypi-publish@release/v1
58-
with:
59-
repository-url: https://test.pypi.org/legacy/
60-
user: __token__
61-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)