Skip to content

chi-rei-den/ModLoaderTools

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published