Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

Commit 95dc349

Browse files
committed
Switch to PyPI token authentication for initial release
- Replace trusted publishing with PYPI_TOKEN secret authentication - Add merge-multiple: true for proper artifact handling - Add distribution listing step for debugging - Simplify workflow permissions - Ready for first PyPI release (requires PYPI_TOKEN secret)
1 parent 4f63fee commit 95dc349

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,18 @@ jobs:
7171
publish:
7272
needs: build
7373
name: Publish to PyPI
74-
# Note: environment removed for initial release - add back after configuring trusted publishing on PyPI
75-
# environment:
76-
# name: pypi
77-
# url: https://pypi.org/p/claudemd-loader
78-
permissions:
79-
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
8074
runs-on: ubuntu-latest
8175
steps:
82-
- name: Download artifacts
83-
uses: actions/download-artifact@v4
84-
with:
85-
name: dist
86-
path: dist/
87-
88-
- name: Publish to PyPI
89-
uses: pypa/gh-action-pypi-publish@release/v1
76+
- name: Download all artifacts
77+
uses: actions/download-artifact@v4
78+
with:
79+
path: dist
80+
merge-multiple: true
81+
82+
- name: List distributions
83+
run: ls -lh dist/
84+
85+
- name: Publish to PyPI
86+
uses: pypa/gh-action-pypi-publish@release/v1
87+
with:
88+
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)