Skip to content
arrow-down-circle

GitHub Action

ModLoaderTools

v1 Latest version

ModLoaderTools

arrow-down-circle

ModLoaderTools

Tools for building a tModLoader mod with GitHub Actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: ModLoaderTools

uses: chi-rei-den/ModLoaderTools@v1

Learn more about this action in chi-rei-den/ModLoaderTools

Choose a version

ModLoaderTools

Tools for building a tModLoader mod with GitHub Actions.

Usage:

name: Mod Build

on: [push]

jobs:
  build:
    runs-on: windows-latest
    steps:
      - uses: actions/checkout@v1
      - uses: warrenbuckley/Setup-Nuget@v1
      - uses: chi-rei-den/ModLoaderTools@v1
        with:
          command: setup
      - run: nuget restore YourProjec
      - uses: chi-rei-den/ModLoaderTools@v1
        with:
          command: build
          path: PathToYourMod
      - uses: chi-rei-den/ModLoaderTools@v1
        with:
          command: publish
          path: PathToYourMod
        env:
          steamid64: ${{ secrets.YourSteamId64 }}
          passphrase: ${{ secrets.ModBrowserPassphrase }}
      - name: Clean artifact
        run: |
          mkdir .\Artifact\Artifact\
          Copy-Item -Path "$ENV:UserProfile\Documents\My Games\Terraria\ModLoader\Mods\*" -Destination .\Artifact\Artifact
          del .\Artifact\Artifact\enabled.json
      - uses: actions/upload-artifact@master
        with:
          name: Build Artifact
          path: Artifact