From 07ec9bc0423f7f22dd6264e4326f021b9655c028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20M=C3=BCller?= Date: Mon, 15 Jan 2024 23:41:02 +0100 Subject: [PATCH] ci: cleanup --- .github/workflows/deploy_pypi.yml | 38 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/.github/workflows/deploy_pypi.yml b/.github/workflows/deploy_pypi.yml index 517c852..1ae8619 100644 --- a/.github/workflows/deploy_pypi.yml +++ b/.github/workflows/deploy_pypi.yml @@ -1,33 +1,31 @@ name: Release to PyPI -on: +on: push: tags: - '*' jobs: deploy: - + name: Deploy package to PYPI runs-on: ubuntu-latest strategy: matrix: python-version: ['3.10'] - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - pip install -e . - - name: Build and publish - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_PWD }} - run: | - python setup.py sdist bdist_wheel - twine upload --skip-existing dist/* + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Run build + run: pipx run build --sdist --wheel + - name: publish + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_PWD }} + run: | + pipx install twine + twine upload --skip-existing dist/*