From a79bb5cbbe5847dd731b7840da44fd3a06a5aaf4 Mon Sep 17 00:00:00 2001 From: Asankilp Date: Mon, 27 Jan 2025 18:57:52 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E6=9B=B4=E6=96=B0PyPI=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pypi-publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 7e5f8f5..95c3629 100755 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -13,6 +13,9 @@ jobs: pypi-publish: name: Upload release to PyPI runs-on: ubuntu-latest + enviroment: release + permissions: + id-token: write steps: - uses: actions/checkout@master - name: Set up Python @@ -34,7 +37,4 @@ jobs: --outdir dist/ . - name: Publish distribution to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - username: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file