From 54589f426c39dfe44625f9fd5c3fadab326baa00 Mon Sep 17 00:00:00 2001 From: Christian Wendt Date: Wed, 21 Feb 2024 21:59:06 +0000 Subject: [PATCH] update release to use trsuted publishing --- .github/workflows/package-release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/package-release.yml b/.github/workflows/package-release.yml index c8859bbd..2b53e2d7 100644 --- a/.github/workflows/package-release.yml +++ b/.github/workflows/package-release.yml @@ -5,6 +5,11 @@ on: jobs: release: runs-on: ubuntu-20.04 + environment: + name: pypi + url: https://pypi.org/p/espn-api + permissions: + id-token: write steps: - uses: actions/checkout@v3 - name: Setup Python @@ -25,4 +30,4 @@ jobs: run: twine check dist/* - name: Publish to PyPI - run: twine upload dist/* -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PASSWORD }} + uses: pypa/gh-action-pypi-publish@release/v1