From 3d649d6c78790e24c039cd20e0cc88008522c42b Mon Sep 17 00:00:00 2001 From: Johann Faouzi Date: Sun, 18 Jun 2023 14:27:29 +0200 Subject: [PATCH] Update publishing workflow (#151) --- .github/workflows/publish_pypi.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index 0d0310f..41d901e 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -11,18 +11,15 @@ jobs: deploy: runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish + - uses: actions/setup-python@v4 + + - name: Build the package + run: python3 -m pip install --upgrade build && python3 -m build + + - name: Publish the package to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.PYPI_API_TOKEN }}