Closed AsterAether closed 1 year ago
Hey, I was trying to implement an automated upload of my modpack for Valheim via a GitHub action. From the API docs I thought I could use POST /api/experimental/submission/upload/
to upload the same ZIP file I would otherwise have to upload manually. I didn't get very far because I was unable to authorize with the API. In the OpenAPI docs I can "authorize" via basic auth but using basic auth with curl provides this message: {"detail":"Authentication credentials were not provided."}
Now I'm wondering if there is any work being done on the REST API or if it is abandonded. Looking at the submission date of this issue it seems like it has gotten lost somewhere, even though it is a pinned issue.
Hey, you can create a service account token via team settings. We also have a CLI tool for building & pushing packages, and a community contributed GitHub action.
Take a look here: https://github.com/thunderstore-io/thunderstore-cli/wiki
As far as issue tracking goes, we no longer use GitHub for it but it hasn't been cleaned up yet. Closing this issue since the feature has been added.
For anyone else trying to accomplish this, here is how I implemented it for my modpack: https://github.com/MLNW/the-howling-yonder-modpack/commit/60885a444feac75643e05a2b4537eb0df8f4f41c
Create a system to upload mods with an access token, for automated build support.