File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1- # keep
1+ 1758043113
Original file line number Diff line number Diff line change 11name : publish-pypi
22on :
33 release :
4- types : [published]
4+ types : [published] # se dispara cuando semantic-release crea el release
5+ workflow_dispatch : # también manual si lo necesitas
56permissions :
6- contents : read
77 id-token : write
8+ contents : read
89jobs :
9- publish :
10- environment : pypi
10+ build-and-publish :
1111 runs-on : ubuntu-latest
12+ environment : pypi
1213 steps :
1314 - uses : actions/checkout@v4
1415 - uses : actions/setup-python@v5
1516 with : { python-version: '3.12' }
16- - run : python -m pip install -U pip build
17+ - run : python -m pip install --upgrade pip build
1718 - run : python -m build
18- - uses : pypa/gh-action-pypi-publish@release/v1
19+ - name : Publish to PyPI (OIDC)
20+ uses : pypa/gh-action-pypi-publish@release/v1
21+ with :
22+ skip-existing : true
You can’t perform that action at this time.
0 commit comments