diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index 73ac449..f653f4a 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -13,19 +13,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v1 - with: - python-version: '3.x' - - name: Install dependencies + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + - name: Build run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish + pipx run build + pipx run twine check dist/* + - name: Upload to PyPI + run: pipx run twine upload dist/* env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py bdist_wheel - twine upload dist/*