https://github.com/lucko/mod-publish
Some handy scripts to automatically publish of some of my Minecraft mods to CurseForge and Modrinth
https://github.com/lucko/mod-publish
Last synced: about 2 months ago
JSON representation
Some handy scripts to automatically publish of some of my Minecraft mods to CurseForge and Modrinth
- Host: GitHub
- URL: https://github.com/lucko/mod-publish
- Owner: lucko
- License: mit
- Created: 2022-09-18T20:08:49.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-07T18:02:52.000Z (over 2 years ago)
- Last Synced: 2024-05-01T21:21:32.669Z (about 2 years ago)
- Language: TypeScript
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# mod-publish
Some handy scripts to automatically publish of some of my Minecraft mods to CurseForge and Modrinth.
Rough process:
1. Use metadata API endpoints to get the latest version of the mod built by Jenkins CI
2. Download the .jar file to disk
3. Submit a request to the Curse/Modrinth API to add a new version, upload the .jar, profit.
Previously, this was a tedious process that took about 10 minutes (2 mods * 2 modloaders * 2 websites) - I had to click around in my browser and fill out the release name/version/whatever each time manually. Now it only takes a few seconds!
### Usage
```bash
export CURSE_API_TOKEN=aaa
export MODRINTH_API_TOKEN=bbb
```
then
```bash
# install dependencies
yarn
# upload
yarn upload-spark
yarn upload-luckperms
```