Closed mscheltienne closed 3 months ago
hey! This looks great!
Thanks for making these changes. Funny enough the company I work for just did a massive migration from Gitlab to GitHub and I was learning about GitHub actions and stuff like that.
Going to merge this and then update the read me a bit so people can use os.environ to get the STEAM_API_KEY
PR independent from #23
This PR adds an automatic workflow that handles the PyPI release. It triggers on a GitHub release (e.g. if you create a release with
target: main
, it triggers with the branchmain
; if you create a release withtarget: maint/1.0
, it triggers with the branchmaint/1.0
).This workflow requires the
PYPI_API_TOKEN
to be added to your repository secrets. Instructions:On PyPI, log in and go to "account settings" (Not to the project, or to the project settings!)
Scroll down to API token
Create a token scoped for
python-steam-api
Copy the token, it should start with
pypi-
On GitHub, on this repository, go to Settings -> Secrets and Variable -> Actions
Add a new
Repository Secret
, namePYPI_API_TOKEN
, secret the copied token (includingthe startpypi-
)