File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Lint
2+ on : [push]
3+ jobs :
4+ lint :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - name : Checkout
8+ uses : actions/checkout@v2
9+ - uses : actions/setup-python@v1
10+ with :
11+ python-version : 3.7
12+ - name : Install flake8
13+ run : pip install flake8
14+ - name : Flake8
15+ run : flake8 checkcel --ignore=E501,W504
16+
17+ pypi :
18+ runs-on : ubuntu-latest
19+ needs : lint
20+ name : Deploy release to Pypi
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v2
24+ - uses : actions/setup-python@v1
25+ with :
26+ python-version : 3.7
27+ - name : Python install
28+ run : pip install -U pip setuptools nose build
29+ - name : Build a binary wheel and a source tarball
30+ run : python -m build --sdist --wheel --outdir dist/ .
31+ - name : Publish distribution 📦 to PyPI
32+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
33+ uses : pypa/gh-action-pypi-publish@master
34+ with :
35+ user : __token__
36+ password : ${{ secrets.PYPI_API_KEY }}
You can’t perform that action at this time.
0 commit comments