Releasing Your Mod - Monster-Train-2-Modding-Group/Trainworks-Reloaded GitHub Wiki

Only follow these steps once your mod is ready for Thunderstore:

Step 1: Verify Tools and Dependencies

  1. Check that your csproj file matches the latest Trainworks Reloaded release and latest Conductor release

  2. Update thunderstore.toml and verify the version of Trainworks-Reloaded and Conductor are the latest versions.

  3. Rebuild your mod if there were any changes to the dependencies

  4. Test your mod in-game and check BepInEx\LogOutput.log for warning or error messages.

Step 2: Add Thunderstore Service Account

  1. Go to Thunderstore → Settings → Teams → Your Team → Service Accounts → Add Service Account

  2. Copy the generated token.

  3. In your GitHub repo → Settings → Secrets and Variables → Actions, add:

    • TCLI_AUTH_TOKEN → Thunderstore token

    • GH_AUTH_TOKEN → GitHub token (back from the Mod setup guide, this should already be present)

Step 3: Publish Your Mod

  1. Update thunderstore.toml:

    versionNumber = "1.0.0"
    

    Replace "1.0.0" with the version number you wish.

    Double check to make sure the dependencies are correct.

  2. Commit your changes to thunderstore.toml.

  3. Tag your release

    git tag 1.0.0
    git push origin tag 1.0.0
    

    Replacing 1.0.0 with the version you chose previously.

  4. GitHub Actions will automatically build and publish to Thunderstore.

    If the Action fails, share the run link in the Shiny Shoe Discord #mt2-modding channel for assistance.

  5. If successful the Github Action will create a release. Check the releases in your GitHub repository and edit the release that was created by the action as the latest release. Optionally edit the release notes.

  6. If this is the first release, it may take a few minutes before your mod appears in Thunderstore.