Skip to content

Commit 1f03764

Browse files
authored
fix: enable CI workflow to run on version tags for automated PyPI publishing
This change allows the workflow to automatically build and publish packages to PyPI when a new version tag or GitHub release is created, completing the automated release pipeline.
2 parents de43c43 + 57283fa commit 1f03764

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)