Skip to content

Commit cf30226

Browse files
author
Shunichi09
authored
Add pypi workflow (#14)
1 parent 2e0ac5c commit cf30226

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflow/python-publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python 3.6
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: '3.6'
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install setuptools wheel twine
20+
- name: Build and publish
21+
env:
22+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
23+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
24+
run: |
25+
python setup.py bdist_wheel
26+
twine upload dist/*

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
install_requires=install_requires,
1515
url='https://github.com/Shunichi09/PythonLinearNonlinearControl',
1616
license='MIT License',
17-
packages=find_packages(exclude=('tests')),
17+
packages=find_packages(exclude=('tests', 'scripts')),
1818
setup_requires=setup_requires,
1919
test_suite='tests',
2020
tests_require=tests_require

0 commit comments

Comments
 (0)