Compare commits
2 Commits
master
...
workflow-t
Author | SHA1 | Date |
---|---|---|
|
468ed73863 | |
|
c19f586ad8 |
|
@ -0,0 +1,26 @@
|
|||
name: Upload Python Package
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python 3.6
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.6'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install setuptools wheel twine
|
||||
- name: Build and publish
|
||||
env:
|
||||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||
run: |
|
||||
python setup.py bdist_wheel
|
||||
twine upload dist/*
|
2
setup.py
2
setup.py
|
@ -14,7 +14,7 @@ setup(
|
|||
install_requires=install_requires,
|
||||
url='https://github.com/Shunichi09/PythonLinearNonlinearControl',
|
||||
license='MIT License',
|
||||
packages=find_packages(exclude=('tests')),
|
||||
packages=find_packages(exclude=('tests', 'scripts')),
|
||||
setup_requires=setup_requires,
|
||||
test_suite='tests',
|
||||
tests_require=tests_require
|
||||
|
|
Loading…
Reference in New Issue