Skip to content

Commit 70e6600

Browse files
Fix publish workflow to use API token instead of trusted publishing
Made-with: Cursor
1 parent 957132b commit 70e6600

1 file changed

Lines changed: 3 additions & 24 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@ on:
44
release:
55
types: [published]
66

7-
permissions:
8-
contents: read
9-
id-token: write
10-
117
jobs:
12-
build:
8+
publish:
139
runs-on: ubuntu-latest
1410
steps:
1511
- uses: actions/checkout@v6
@@ -25,24 +21,7 @@ jobs:
2521
- name: Build package
2622
run: python -m build
2723

28-
- name: Upload build artifacts
29-
uses: actions/upload-artifact@v4
30-
with:
31-
name: dist
32-
path: dist/
33-
34-
publish:
35-
needs: build
36-
runs-on: ubuntu-latest
37-
environment: pypi
38-
permissions:
39-
id-token: write
40-
steps:
41-
- name: Download build artifacts
42-
uses: actions/download-artifact@v8
43-
with:
44-
name: dist
45-
path: dist/
46-
4724
- name: Publish to PyPI
4825
uses: pypa/gh-action-pypi-publish@release/v1
26+
with:
27+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)