Skip to content

Commit

Permalink
Updated publish
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeniashurko committed Nov 11, 2021
1 parent edb2cb0 commit 7a7df9c
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Publish BlueGraph to PyPI
name: Publish sdist tarball to PyPi

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
publish:
build-n-publish:
name: Build and publish on PyPI
runs-on: ubuntu-latest
steps:
Expand All @@ -13,22 +15,12 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Build a source tarball
run:
python setup.py sdist

- name: Publish distribution package to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
username: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 7a7df9c

Please sign in to comment.