QuiCM / EssentialsPlus

Essentials and MoreAdminCommands plugins for Terraria, merged and bettered
12 stars 28 forks source link

Set up CI #18

Closed tannertechnology closed 3 years ago

tannertechnology commented 3 years ago

Hey again,

I've set up a workflow to automatically build and attach a release DLL to an existing Github release.

Just create a tag to get a new build published. In my testing the only issue with the latest version is the owners group isn't seen as as powerful as the superadmins group, haven't worked out a fix.

Thanks! ~Tanner

QuiCM commented 3 years ago

I like this. Would you be able to add a little more smarts to it so it grabs the latest TShock release each time? This way the pipeline will break if the latest tshock release is incompatible and will indicate that a real update needs to be done.

Will need a little magic (use https://github.com/Pryaxis/TShock/releases/latest, then parse the output (docs) to grab the download url)

Happy to accept as is though, let me know :)

tannertechnology commented 3 years ago

Hey QuiCM,

Thanks! I've gone for a lazy solution for the moment but will do some more research, probably publish an action to simplify the release grabbing process in the coming weeks. For now I'm using https://ghd.one/ to grab the latest release.

Don't merge this yet.

tannertechnology commented 3 years ago

All set. Added and tested a better method. https://github.com/dkstanner/EssentialsPlus/actions/runs/981582897 shows a run in action. Thanks!

This could be further improved by fetching those nuget modules directly from nuget but probably better to just use the versions TShock ships and definitely easier.