sabuhish / fastapi-mqtt

fastapi-mqtt is extension for MQTT protocol
https://sabuhish.github.io/fastapi-mqtt/
MIT License
264 stars 42 forks source link

🚨 Fix GH Action for pypi publish #88

Closed azogue closed 8 months ago

azogue commented 10 months ago

cc @sabuhish

pypi.org has changed their security police 🚨, and using --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }} is not valid anymore -> https://github.com/sabuhish/fastapi-mqtt/actions/runs/7396082004/job/20120516144

HTTP Error 403: Username/Password authentication is no longer supported. Migrate to API Tokens or Trusted Publishers instead. See https://pypi.org/help/#apitoken and https://pypi.org/help/#trusted-publishers Access was denied to this resource.

Publish action needs to change, but also the account configuration in pypi.org ⚠️

Hecate2 commented 8 months ago

(Is it OK to manually publish v2.1.1 to pypi please...?)

azogue commented 8 months ago

(Is it OK to manually publish v2.1.1 to pypi please...?)

Hi @Hecate2 , only @sabuhish can do that 😢

maybe this ping could reach him 🤞

sabuhish commented 8 months ago

Hello, thanks for pinging me, just taking care of it, let me check, if not tonight will do it.

sabuhish commented 8 months ago

Could you please re-run the actions? @azogue

azogue commented 8 months ago

Could you please re-run the actions? @azogue

Done ✅

I had to delete the latest release and redo it again to trigger the job (didn't find a 'retry' option), but it worked 🤟

v2.1.1 published: https://pypi.org/project/fastapi-mqtt/ 🚀🚀🚀

Closing this issue, thanks @sabuhish 💪