Skip to content

Commit 05b8cf2

Browse files
committed
Use a trusted publisher for linux wheels, not just sdist
1 parent d1de69c commit 05b8cf2

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/manylinux.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
uses: pypa/gh-action-pypi-publish@release/v1
3939
build_manylinux:
4040
runs-on: ubuntu-latest
41+
permissions:
42+
id-token: write
4143
strategy:
4244
matrix:
4345
arch: [x86_64, aarch64]
@@ -83,13 +85,5 @@ jobs:
8385
path: manylinux-wheels
8486
- name: Publish to PyPI if tagged
8587
if: startsWith(github.ref, 'refs/tags')
86-
env:
87-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
88-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
89-
run: |
90-
python --version
91-
pip --version
92-
python -m pip install --upgrade pip
93-
pip install twine setuptools-scm
94-
twine upload manylinux-wheels/mecab*whl
88+
uses: pypa/gh-action-pypi-publish@release/v1
9589

0 commit comments

Comments
 (0)