Skip to content

Commit 7e1f181

Browse files
committed
unify workflows into one single file
1 parent ee42b21 commit 7e1f181

File tree

2 files changed

+15
-32
lines changed

2 files changed

+15
-32
lines changed

.github/workflows/actions.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,20 @@ jobs:
1111
python-version: 3.7
1212
- name: Install dependencies
1313
run: |
14-
python -m pip install --upgrade pip
14+
python -m pip install build --user --upgrade pip
1515
pip install pycodestyle
1616
- name: Validate PEP8 compliance
17-
run: pycodestyle .
17+
run: pycodestyle .
18+
- name: Build a binary wheel and a source tarball
19+
run: >-
20+
python -m
21+
build
22+
--sdist
23+
--wheel
24+
--outdir dist/
25+
.
26+
- name: Publish 📦 to PyPI
27+
if: startsWith(github.ref, 'refs/tags')
28+
uses: pypa/gh-action-pypi-publish@master
29+
with:
30+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/publish-to-pypi.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)