Skip to content

Commit f21b3dd

Browse files
committed
Use API tokens
The trusted publisher thing didn't work. The actions for it only run on linux, which is a non-starter anyway. This just uses api tokens.
1 parent 81711de commit f21b3dd

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/manylinux.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
- name: upload to pypi if tagged
3535
if: startsWith(github.ref, 'refs/tags')
3636
env:
37-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
38-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
37+
TWINE_USERNAME: __token__
38+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
3939
run: |
4040
twine upload dist/mecab*.tar.gz
4141
build_manylinux:
@@ -86,8 +86,8 @@ jobs:
8686
- name: Publish to PyPI if tagged
8787
if: startsWith(github.ref, 'refs/tags')
8888
env:
89-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
90-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
89+
TWINE_USERNAME: __token__
90+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
9191
run: |
9292
python --version
9393
pip --version

.github/workflows/osx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ jobs:
7676
- name: Publish to PyPI if tagged
7777
if: startsWith(github.ref, 'refs/tags')
7878
env:
79-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
80-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
79+
TWINE_USERNAME: __token__
80+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
8181
run: |
8282
pip install twine
8383
twine upload dist/mecab*whl

.github/workflows/windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ jobs:
6767
- name: Publish to PyPI if tagged
6868
if: startsWith(github.ref, 'refs/tags')
6969
env:
70-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
71-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
70+
TWINE_USERNAME: __token__
71+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
7272
run: |
7373
python --version
7474
pip --version

0 commit comments

Comments
 (0)