From 536ba7702fcf1c44865a5963247c772acc1db615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20BEAU?= Date: Fri, 6 Oct 2023 16:42:16 +0200 Subject: [PATCH] Configure pipy --- .github/workflows/ci.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6c38b6..ec58e3e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,18 +35,16 @@ jobs: run: | python -m tox - uses: codecov/codecov-action@v3 - deploy: + pypi-publish: + name: Upload release to PyPI runs-on: ubuntu-latest - needs: - - pre-commit - - tests + environment: + name: pypi + url: https://pypi.org/p/roulier + permissions: + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing if: startsWith(github.ref, 'refs/tags') steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - name: Build a binary wheel and a source tarball - run: pipx run build - - name: Publish distribution 📦 to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.PYPI_API_TOKEN }} + # retrieve your distributions here + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1