-
Notifications
You must be signed in to change notification settings - Fork 20
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
fix: fix (or attempt to fix) the pypi publication process #241
Conversation
Review changes with SemanticDiff. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #241 +/- ##
=======================================
Coverage 87.21% 87.21%
=======================================
Files 21 21
Lines 1783 1783
Branches 323 323
=======================================
Hits 1555 1555
Misses 189 189
Partials 39 39 ☔ View full report in Codecov by Sentry. |
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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.
Based on https://docs.pypi.org/trusted-publishers/ I bet we can (and should) remove this password field.
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.
But it works like this in g2p, so I'll leave it this way for now.
6728456
to
56b5e1d
Compare
password: ${{ secrets.PYPI_API_TOKEN }} | ||
verbose: true | ||
|
||
deploy-docs: |
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.
follows what we do in g2p
Nothing works today. 🙁
Can't publish studio.
Finding last minutes bugs in studio-web.
Bleh.
Here, I'm guessing the way we published to pypi is no longer supported. See #240.
This code is mimicked from g2p, but not tested. Please review carefully.
Before this can work, we'll need to add the PYPI_API_TOKEN to this repo's secrets, and we can probably remove the obsolete PyPI username and password secrets since they don't work anymore anyway.