Skip to content

Commit d1de69c

Browse files
committed
Use trusted publisher on linux
1 parent 25a326b commit d1de69c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/manylinux.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on: [push]
55
jobs:
66
build_sdist:
77
runs-on: ubuntu-latest
8+
permissions:
9+
id-token: write
810
steps:
911
- uses: actions/checkout@v3
1012
- name: Set up Python
@@ -33,11 +35,7 @@ jobs:
3335
python setup.py sdist
3436
- name: upload to pypi if tagged
3537
if: startsWith(github.ref, 'refs/tags')
36-
env:
37-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
38-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
39-
run: |
40-
twine upload dist/mecab*.tar.gz
38+
uses: pypa/gh-action-pypi-publish@release/v1
4139
build_manylinux:
4240
runs-on: ubuntu-latest
4341
strategy:

0 commit comments

Comments
 (0)