diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6413cdd..6aed57b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,6 +26,10 @@ jobs: deploy: needs: test name: PyPI Deploy + environment: pypi + permissions: + contents: write + id-token: write runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -39,8 +43,9 @@ jobs: uses: casperdcl/deploy-pypi@v2 with: build: true - password: ${{ secrets.PYPI_TOKEN }} - upload: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }} + upload: false + - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@release/v1 - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') name: Release run: |