Skip to content

Merge branch 'feature/mac-m1-builds' #48

Merge branch 'feature/mac-m1-builds'

Merge branch 'feature/mac-m1-builds' #48

Workflow file for this run

name: Build OSX wheels
on: [push]
jobs:
build_osx:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Download and build MeCab
shell: bash
run: |
.github/macos-build.sh
- name: Upload Wheels
uses: actions/upload-artifact@v1
with:
name: osx-wheels
path: dist
- name: Publish to PyPI if tagged
if: startsWith(github.ref, 'refs/tags') && github.repository_owner == 'polm'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
pip install twine
twine upload dist/mecab*whl