thunderstore-io / Thunderstore

Thunderstore is a mod database and API for downloading mods. Thunderstore Discord: https://discord.thunderstore.io/
https://thunderstore.io/
GNU Affero General Public License v3.0
135 stars 27 forks source link

[Feature] Mod Upload with Access token #32

Closed AsterAether closed 1 year ago

AsterAether commented 5 years ago

Create a system to upload mods with an access token, for automated build support.

MLNW commented 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.

MythicManiac commented 1 year ago

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.

MLNW commented 1 year ago

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