File tree Expand file tree Collapse file tree 1 file changed +29
-5
lines changed
Expand file tree Collapse file tree 1 file changed +29
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,35 @@ name: Build manylinux wheels
33on : [push]
44
55jobs :
6- deploy :
6+ build_sdist :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@v1
10+ - name : Set up Python
11+ uses : actions/setup-python@v2
12+ with :
13+ python-version : ' 3.x'
14+ - name : install MeCab
15+ run : |
16+ git clone --depth=1 https://github.com/taku910/mecab.git
17+ cd mecab/mecab
18+ ./configure --enable-utf8-only
19+ make
20+ sudo make install
21+ cd ../..
22+ - name : build sdist
23+ run : |
24+ python -m pip install --upgrade pip
25+ pip install twine setuptools-scm
26+ python setup.py sdist
27+ - name : upload to pypi if tagged
28+ if : startsWith(github.ref, 'refs/tags')
29+ env :
30+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
31+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
32+ run : |
33+ twine upload dist/mecab*.tar.gz
34+ build_manylinux :
735 runs-on : ubuntu-latest
836 strategy :
937 matrix :
4169 python -m pip install --upgrade pip
4270 pip install twine setuptools-scm
4371 twine upload manylinux-wheels/mecab*whl
44- if [ $arch == 'x86_64' ]; then
45- python setup.py sdist
46- twine upload dist/mecab*.tar.gz
47- fi
4872
You can’t perform that action at this time.
0 commit comments