Skip to content

Commit d614378

Browse files
committed
switch to trusted publishing in workflows
1 parent 7aa9b83 commit d614378

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ on:
88
jobs:
99
build-and-publish:
1010
runs-on: ubuntu-latest
11+
environment:
12+
name: pypi
13+
url: https://pypi.org/project/apple-books-mcp/
14+
permissions:
15+
contents: read
16+
id-token: write
17+
1118
steps:
1219
- name: Checkout code
1320
uses: actions/checkout@v4
@@ -32,8 +39,6 @@ jobs:
3239
uv run python -m build
3340
3441
- name: Publish package
35-
run: |
36-
uv run twine upload dist/*
37-
env:
38-
TWINE_USERNAME: __token__
39-
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
42+
uses: pypa/gh-action-pypi-publish@release/v1
43+
with:
44+
skip-existing: true

0 commit comments

Comments
 (0)