diff --git a/.github/workflows/manylinux.yml b/.github/workflows/manylinux.yml index 7058bf9..95e2c19 100644 --- a/.github/workflows/manylinux.yml +++ b/.github/workflows/manylinux.yml @@ -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 }} @@ -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 }} diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml index e8fc4cd..5a2375c 100644 --- a/.github/workflows/osx.yml +++ b/.github/workflows/osx.yml @@ -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 }} diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index ac7e192..6e12d73 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -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 }}