Skip to content

Commit 5130dab

Browse files
committed
feat: Added release tag PyPi publish
1 parent 97647c4 commit 5130dab

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ name: CI
33
on:
44
push:
55
branches: [main]
6-
tags: ["v*"]
76
pull_request:
87
branches: [main]
8+
release:
9+
types: [published]
910

1011
jobs:
1112
test:
@@ -38,8 +39,7 @@ jobs:
3839
name: Publish to PyPI
3940
needs: test
4041
runs-on: ubuntu-latest
41-
if: startsWith(github.ref, 'refs/tags/v')
42-
environment: pypi
42+
if: github.event_name == 'release'
4343

4444
steps:
4545
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)