Skip to content

Commit 5ce2065

Browse files
committed
chnage pypi config
1 parent 1fd4c00 commit 5ce2065

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ jobs:
9797
runs-on: ubuntu-latest
9898
permissions:
9999
contents: write
100-
id-token: write
101100

102101
steps:
103102
- uses: actions/checkout@v4
@@ -107,10 +106,14 @@ jobs:
107106
path: dist
108107
merge-multiple: true
109108

109+
- name: Install twine
110+
run: pip install twine
111+
110112
- name: Publish to PyPI
111-
uses: pypa/gh-action-pypi-publish@release/v1
112-
with:
113-
password: ${{ secrets.PYPI_TOKEN }}
113+
env:
114+
TWINE_USERNAME: __token__
115+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
116+
run: twine upload dist/*
114117

115118
- name: Attach release notes to GitHub release
116119
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)