Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update release workflow #92

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dopplershift
Copy link
Member

@dopplershift dopplershift commented Apr 24, 2023

  • Updated the versions of various actions in the workflow
  • Added a dependabot config that should automatically send in PRs for updates to these actions
  • Switch to use PyPI "trusted publisher" (see below)

PyPI's new trusted publisher support allows configuring, on the PyPI project, a specific GitHub Actions workflow and (optionally environment--like your "pypi" environment) that is permitted to publish to PyPI. Using existing publication action you're using from PyPA, GitHub and PyPI will automatically exchange the needed (short-lived) tokens to permit the publication. This eliminates having a persistent, shared secret that is associated with a particular user account, and instead everything uses short-lived tokens and configuration that is done at the project infrastructure level.

If you're happy proceeding this way, the additional steps with this PR are:

This should help keep GitHub Actions versions up-to-date.
This replaces using a fixed secret API token that is attached to a
single user.
@dopplershift
Copy link
Member Author

I can confirm this workflow worked without any problems for the most recent MetPy release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant