meilisearch / meilisearch-swift

Swift client for the Meilisearch API
https://www.meilisearch.com
MIT License
93 stars 26 forks source link

Impossible to release to cocoapod #442

Closed curquiza closed 8 months ago

curquiza commented 8 months ago

Swift release failed: impossible to publish to Cocoapods: https://github.com/meilisearch/meilisearch-swift/actions/runs/8360859280/job/22887494524

Reason: authentication issue.

Capture d’écran 2024-03-20 à 17 17 26

I don't know why our token suddenly does not work. We changed nothing our side, and the token is still accessible by the CI

@Sherlouk if you have any clue 🙏

curquiza commented 8 months ago

I even realize v0.15.0 of this library is not even on cocoapod despite the CI succeeded some months ago

Capture d’écran 2024-03-20 à 17 18 52 Capture d’écran 2024-03-20 à 17 19 36

Did I miss something related to cocoapod in the swift world?

Sherlouk commented 8 months ago

Likely just needs the token to be updated. Haven't touched CocoaPods in years (most users are transitioning over to SPM at this point) - but likely just need to run pod trunk register <email> and get yourself a freshly authenticated token. Seems to have just expired which can happen with time and little use.

curquiza commented 8 months ago

Thank you @Sherlouk the issue is, I don't know how to re-generate a new token! No command to do it, and nothing in the guide to automate the process

Capture d’écran 2024-03-20 à 17 57 05

https://guides.cocoapods.org/making/getting-setup-with-trunk.html

Sorry, feel like a noob here 😅

Sherlouk commented 8 months ago

This isn't a noob moment, this isn't your skill set and that's absolutely fine.

Following the guide you sent above, you're able to run pod trunk register with various parameters (namely your email address). This will send you an email to authenticate and ensure you're the owner of the package with the right permissions.

Once you're fully registered you can run pod trunk me --verbose which will dump out a request to trunk.cocoapods.org. In this you'll see a Authorization: Token XXXXXXXXXXX. The token being what needs uploading to GitHub secets!

I'll add, this isn't my wheelhouse either, but hopefully above is enough guidance to get a new token and make progress!

curquiza commented 8 months ago

it worked 🎉

thank you @Sherlouk ❤️