Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit 15104ef

Browse files
Run workflow on push with v* tag (#33)
1 parent 6082b17 commit 15104ef

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Publish to PyPi
2+
23
on:
3-
release:
4-
types: [published]
4+
push:
5+
tags:
6+
- 'v*'
57
workflow_dispatch:
68

79
jobs:
@@ -32,6 +34,7 @@ jobs:
3234
publish-to-pypi:
3335
name: >-
3436
Publish Python 🐍 distribution 📦 to PyPI
37+
if: startsWith(github.ref, 'refs/tags/')
3538
needs:
3639
- build
3740
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)