Skip to content

Commit 4e25b9a

Browse files
committed
publish to pypi on release instead of just tag
1 parent 4ee9446 commit 4e25b9a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/tag.yml .github/workflows/publish-pypi.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
name: tag
1+
name: publish package on pypi
2+
23
on:
4+
workflow_dispatch:
35
push:
4-
tags:
5-
- 'v[0-9]+.[0-9]+.[0-9]+'
6+
branches:
7+
- main
8+
release:
9+
types:
10+
- published
611

712
jobs:
813
build:
@@ -20,7 +25,8 @@ jobs:
2025
with:
2126
name: "python-package-distributions"
2227
path: "dist/"
23-
pypi:
28+
29+
publish:
2430
environment:
2531
name: "test.pypi.org"
2632
url: "https://test.pypi.org/project/lbster"

0 commit comments

Comments
 (0)