From 7a7df9c97d01d7ebfa77cf911f187b18e2d6dc02 Mon Sep 17 00:00:00 2001 From: eugeniashurko Date: Thu, 11 Nov 2021 10:37:57 +0100 Subject: [PATCH] Updated publish --- .github/workflows/publish.yml | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 83cd6c15..8f10bea3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: @@ -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 }} \ No newline at end of file