From f420d3dc67d39efb16af5a499a7de6792e148010 Mon Sep 17 00:00:00 2001 From: Will Usher Date: Mon, 10 Jul 2023 10:34:13 +0200 Subject: [PATCH] Use tox config for publishing --- .github/workflows/python-publish.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index bdaab28a..fc3dac1a 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -29,11 +29,8 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install build + pip install tox - name: Build package - run: python -m build + run: tox -e build - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + run: tox -e publish