Skip to content

Commit 57283fa

Browse files
authored
Update ci.yml
fix: update CI workflow to trigger on version tags This enables automatic PyPI publishing when a version tag is pushed or a GitHub release is created, completing the automated release pipeline.
1 parent de43c43 commit 57283fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: CI
33
on:
44
push:
55
branches: [ main ]
6+
tags:
7+
- 'v*' # Run workflow on version tags
68
pull_request:
79
branches: [ main ]
810

@@ -70,4 +72,4 @@ jobs:
7072
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
7173
uses: pypa/gh-action-pypi-publish@release/v1
7274
with:
73-
password: ${{ secrets.PYPI_API_TOKEN }}
75+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)