Skip to content

Commit a3dba34

Browse files
committed
3.1.0
Fix the bug of windows workflow.
1 parent 00df04d commit a3dba34

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/python-publish.yml

+8-10
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,15 @@ jobs:
3232
python -m pip install --upgrade pip
3333
pip install setuptools wheel twine
3434
pip install -r requirements.txt
35-
- name: Build package
35+
- name: Build package (Linux)
3636
run: |
37-
if [ "$RUNNER_OS" == "Linux" ]; then
38-
python setup.py bdist_wheel --plat-name manylinux1_x86_64
39-
elif [ "$RUNNER_OS" == "Windows" ]; then
40-
python setup.py bdist_wheel
41-
else
42-
echo "$RUNNER_OS not supported"
43-
exit 1
44-
fi
45-
- name: Build and publish
37+
python setup.py bdist_wheel --plat-name manylinux1_x86_64
38+
if: runner.os == 'Linux'
39+
- name: Build package (Windows)
40+
run: |
41+
python setup.py bdist_wheel
42+
if: runner.os == 'Windows'
43+
- name: Publish
4644
env:
4745
TWINE_USERNAME: __token__
4846
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)