Skip to content

Commit 1118283

Browse files
committed
update
1 parent 9e3ede4 commit 1118283

File tree

1 file changed

+27
-12
lines changed

1 file changed

+27
-12
lines changed

.github/workflows/main.yml

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,31 @@ jobs:
88
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
99
runs-on: ubuntu-18.04
1010

11-
steps:
12-
- uses: actions/checkout@master
13-
- name: Set up Python 3.6
14-
uses: actions/setup-python@v1
15-
with:
16-
python-version: 3.6
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: Set up Python 3.6
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.6
1717

18-
- name: Publish package
19-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
20-
uses: pypa/gh-action-pypi-publish@release/v1
21-
with:
22-
user: __token__
23-
password: ${{ secrets.PYPI_API_TOKEN }}
18+
- name: Install pypa/build
19+
run: >-
20+
python -m
21+
pip install
22+
build
23+
--user
24+
- name: Build a binary wheel and a source tarball
25+
run: >-
26+
python -m
27+
build
28+
--sdist
29+
--wheel
30+
--outdir dist/
31+
.
32+
33+
- name: Publish package
34+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
35+
uses: pypa/gh-action-pypi-publish@release/v1
36+
with:
37+
user: __token__
38+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)