Skip to content

Commit 6ea84fa

Browse files
committed
fix: remove publish step from CI workflow to avoid trusted publisher conflicts
Publication should only happen through the release.yml workflow which is properly configured as a trusted publisher on PyPI.
1 parent d4d742c commit 6ea84fa

1 file changed

Lines changed: 2 additions & 23 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -152,26 +152,5 @@ jobs:
152152
name: dist
153153
path: dist/
154154

155-
publish:
156-
runs-on: ubuntu-latest
157-
needs: build
158-
if: github.event_name == 'release' && github.event.action == 'published'
159-
environment:
160-
name: pypi
161-
url: https://pypi.org/p/fastapi-jwt-harmony
162-
permissions:
163-
id-token: write # For trusted publishing
164-
165-
steps:
166-
- uses: actions/checkout@v4
167-
168-
- name: Download build artifacts
169-
uses: actions/download-artifact@v4
170-
with:
171-
name: dist
172-
path: dist/
173-
174-
- name: Publish to PyPI
175-
uses: pypa/gh-action-pypi-publish@release/v1
176-
with:
177-
packages-dir: dist/
155+
# Publish step removed - publication happens only through release.yml workflow
156+
# to avoid conflicts with trusted publisher configuration

0 commit comments

Comments
 (0)