-
Notifications
You must be signed in to change notification settings - Fork 77
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
Create GitHub Action to auto-publish to PyPI #683
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @libialany for the first PR on this repository. I've taken a look at the suggested changes and additions. There are some questions and suggestions that I added inline. Could you please take a look? Thanks!
.github/workflows/release.yml
Outdated
run: python -m build | ||
|
||
- name: Publish package to PyPI | ||
if: github.repository == 'mozilla/mozdownload' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we change the check for mozilla/mozdownload
to the existence of the secret token identifier in the environment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the advice.
FYI a new PR was created for the requested changes which is #686. |
user: ${{ secrets.pypi_user }}
password: ${{ secrets.pypi_password }}
.