Skip to content

Latest commit

 

History

History
40 lines (37 loc) · 1.06 KB

README.md

File metadata and controls

40 lines (37 loc) · 1.06 KB

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