Skip to content

Commit 0b6f2b4

Browse files
committed
Break sdist build into separate step
1 parent 7c9ec14 commit 0b6f2b4

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

.github/workflows/manylinux.yml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,35 @@ name: Build manylinux wheels
33
on: [push]
44

55
jobs:
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:
@@ -41,8 +69,4 @@ jobs:
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

0 commit comments

Comments
 (0)