diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 17ebbb3..1b38db9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -72,6 +72,11 @@ jobs: needs: [tests, build] runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/') + environment: + name: pypi + url: https://pypi.org/p/corner + permissions: + id-token: write steps: - uses: actions/download-artifact@v8 with: @@ -79,6 +84,3 @@ jobs: path: dist - uses: pypa/gh-action-pypi-publish@v1.13.0 - with: - user: __token__ - password: ${{ secrets.pypi_password }}