Skip to content

Commit

Permalink
Only publish to pypi from the polm repo
Browse files Browse the repository at this point in the history
  • Loading branch information
polm committed Sep 14, 2023
1 parent f21b3dd commit d42e1e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/manylinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
pip install twine setuptools-scm
python setup.py sdist
- name: upload to pypi if tagged
if: startsWith(github.ref, 'refs/tags')
if: startsWith(github.ref, 'refs/tags') && github.repository_owner == 'polm'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
name: manylinux-wheels
path: manylinux-wheels
- name: Publish to PyPI if tagged
if: startsWith(github.ref, 'refs/tags')
if: startsWith(github.ref, 'refs/tags') && github.repository_owner == 'polm'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
VERSION=$(python setup.py --version)
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')
if: startsWith(github.ref, 'refs/tags') && github.repository_owner == 'polm'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
VERSION=$(python setup.py --version)
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')
if: startsWith(github.ref, 'refs/tags') && github.repository_owner == 'polm'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
Expand Down

0 comments on commit d42e1e1

Please sign in to comment.