Skip to content

Commit

Permalink
Try using trusted publisher for osx and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
polm committed Sep 13, 2023
1 parent 65fdce3 commit 89cdde4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,5 @@ jobs:
pip install dist/mecab_python3-${VERSION}-cp${{ matrix.py-short }}-cp${{ matrix.py-short2 }}-macosx*.whl
- name: Publish to PyPI if tagged
if: startsWith(github.ref, 'refs/tags')
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install twine
twine upload dist/mecab*whl
uses: pypa/gh-action-pypi-publish@release/v1

14 changes: 3 additions & 11 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on: [push]
jobs:
build:
runs-on: windows-latest
permissions:
id-token: write
strategy:
max-parallel: 4
matrix:
Expand Down Expand Up @@ -66,14 +68,4 @@ jobs:
pip install "dist/mecab_python3-${VERSION}-cp${{ matrix.py-short }}-cp${{ matrix.py-short2 }}-win_amd64.whl"
- name: Publish to PyPI if tagged
if: startsWith(github.ref, 'refs/tags')
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python --version
pip --version
python -m pip install --upgrade pip
pip install twine setuptools-scm
twine upload dist/mecab*whl
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 89cdde4

Please sign in to comment.