mediacloud / metadata-lib

How Media Cloud approaches extracting metadata from online news stories
Apache License 2.0
12 stars 3 forks source link

Get automated release working #78

Closed rahulbot closed 3 months ago

rahulbot commented 7 months ago

Seems like to release we now have to use trusted publishers to release to PYPI? I tried to setup the appropriate GH action via their docs, but it is failing with an error:

Notice: Attempting to perform trusted publishing exchange to retrieve a temporary short-lived API token for authentication against https://test.pypi.org/legacy/ due to token username with no supplied password field Error: Trusted publishing exchange failure: Token request failed: the server refused the request for the following reasons:

  • invalid-publisher: valid token, but no corresponding publisher (All lookup strategies exhausted) This generally indicates a trusted publisher configuration error, but could also indicate an internal error on GitHub or PyPI's part.

I can't figure out why that would be.

rahulbot commented 7 months ago

(Note: was able to publish via API token for now, but this would be better. I manually disabled these pypi workflows for now.)

pgulley commented 3 months ago

Sorted this out the other week- I believe this is resolved!