Skip to content

Commit

Permalink
Merge pull request #530 from cwendt94/update-release-auth
Browse files Browse the repository at this point in the history
update release to use trsuted publishing
  • Loading branch information
cwendt94 authored Feb 21, 2024
2 parents b24d467 + 54589f4 commit b60d5c0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit b60d5c0

Please sign in to comment.