diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 213f282dd..6a24d8bd3 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -11,6 +11,8 @@ jobs: deploy: runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@v3 @@ -21,11 +23,9 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine numpy cython - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + pip install setuptools wheel numpy cython + - name: Build run: | python setup.py sdist - twine upload dist/*.tar.gz + - name: Publish + uses: pypa/gh-action-pypi-publish@release/v1