Skip to content

Commit 7a7df9c

Browse files
committed
Updated publish
1 parent edb2cb0 commit 7a7df9c

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
name: Publish BlueGraph to PyPI
1+
name: Publish sdist tarball to PyPi
2+
23
on:
34
push:
45
tags:
56
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
68
jobs:
7-
publish:
9+
build-n-publish:
810
name: Build and publish on PyPI
911
runs-on: ubuntu-latest
1012
steps:
@@ -13,22 +15,12 @@ jobs:
1315
uses: actions/setup-python@v2
1416
with:
1517
python-version: 3.7
16-
- name: Install pypa/build
17-
run: >-
18-
python -m
19-
pip install
20-
build
21-
--user
22-
- name: Build a binary wheel and a source tarball
23-
run: >-
24-
python -m
25-
build
26-
--sdist
27-
--wheel
28-
--outdir dist/
29-
.
18+
- name: Build a source tarball
19+
run:
20+
python setup.py sdist
21+
3022
- name: Publish distribution package to PyPI
3123
uses: pypa/gh-action-pypi-publish@master
3224
with:
33-
username: __token__
34-
password: ${{ secrets.PYPI_API_TOKEN }}
25+
user: __token__
26+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)