Skip to content

Commit 89cdde4

Browse files
committed
Try using trusted publisher for osx and Windows
1 parent 65fdce3 commit 89cdde4

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

.github/workflows/osx.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,5 @@ jobs:
7777
pip install dist/mecab_python3-${VERSION}-cp${{ matrix.py-short }}-cp${{ matrix.py-short2 }}-macosx*.whl
7878
- name: Publish to PyPI if tagged
7979
if: startsWith(github.ref, 'refs/tags')
80-
env:
81-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
82-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
83-
run: |
84-
pip install twine
85-
twine upload dist/mecab*whl
80+
uses: pypa/gh-action-pypi-publish@release/v1
8681

.github/workflows/windows.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on: [push]
55
jobs:
66
build:
77
runs-on: windows-latest
8+
permissions:
9+
id-token: write
810
strategy:
911
max-parallel: 4
1012
matrix:
@@ -66,14 +68,4 @@ jobs:
6668
pip install "dist/mecab_python3-${VERSION}-cp${{ matrix.py-short }}-cp${{ matrix.py-short2 }}-win_amd64.whl"
6769
- name: Publish to PyPI if tagged
6870
if: startsWith(github.ref, 'refs/tags')
69-
env:
70-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
71-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
72-
run: |
73-
python --version
74-
pip --version
75-
python -m pip install --upgrade pip
76-
pip install twine setuptools-scm
77-
twine upload dist/mecab*whl
78-
79-
71+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)