Skip to content

Commit 39e0012

Browse files
Publish on PyPI at tag only
1 parent 6cc1414 commit 39e0012

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@ name: Deploy on Production
33
on:
44
workflow_dispatch:
55
push:
6-
branches:
7-
- main
8-
# push:
9-
# tags:
10-
# - v*
6+
tags:
7+
- v*
118

129
jobs:
1310
build:
@@ -37,7 +34,7 @@ jobs:
3734

3835
publish-to-pypi:
3936
name: Publish to PyPI
40-
# if: startsWith(github.ref, 'refs/tags/')
37+
if: startsWith(github.ref, 'refs/tags/')
4138
needs:
4239
- build
4340
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)