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 }}