Skip to content

Commit db3dc0c

Browse files
committed
ci: change release trigger
1 parent 013074b commit db3dc0c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: Publish to PyPI
22

33
on:
4-
push:
5-
tags:
6-
- 'v*.*.*'
4+
pull_request:
5+
types:
6+
- closed
7+
branches:
8+
- main
79

810
permissions:
911
contents: read
@@ -12,6 +14,8 @@ permissions:
1214
jobs:
1315
publish:
1416
name: Publish to PyPI
17+
if: |
18+
contains(github.event.pull_request.labels.*.name, 'autorelease: tagged')
1519
runs-on: ubuntu-latest
1620
environment:
1721
name: pypi

0 commit comments

Comments
 (0)