diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c5b7a35..c4595e4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,6 +16,8 @@ jobs: deploy: needs: release runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@v1 - name: Set up Python @@ -26,10 +28,8 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + - name: Build run: | python setup.py sdist bdist_wheel - twine upload dist/* + - name: Publish + uses: pypa/gh-action-pypi-publish@release/v1