Skip to content

Commit eea97c5

Browse files
author
ClaraVnk
committed
Update PyPI publish trigger to deploy on main branch push
1 parent 4ad4e45 commit eea97c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Déclenché sur :
1414
- Build le package Python
1515
- Vérifie avec twine
1616
- Upload les artifacts
17-
- 🚀 Publie sur PyPI si tag `v*`
17+
- 🚀 **Publie automatiquement sur PyPI** (push sur main)
1818

1919
2. **Build Docker Image**
2020
- Build l'image Docker multi-arch (amd64, arm64)

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
retention-days: 7
4949

5050
- name: Publish to PyPI
51-
if: startsWith(github.ref, 'refs/tags/v')
51+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
5252
env:
5353
TWINE_USERNAME: __token__
5454
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)