Refactored main menu fully, all done. Cotlim plz test and confirm thi… #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Mod | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| build-mod: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Download tModLoader | |
| run: | | |
| curl -s -L https://github.com/tModLoader/tModLoader/releases/latest/download/tModLoader.zip -o tModLoader.zip | |
| - name: Extract tModLoader | |
| run: | | |
| unzip -q -o tModLoader.zip -d ../tModLoader | |
| rm tModLoader.zip | |
| - name: Create tModLoader.targets | |
| shell: bash | |
| run: | | |
| cat >> ../tModLoader.targets << EOF | |
| <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <Import Project="tModLoader\tMLMod.targets" /> | |
| </Project> | |
| EOF | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Restore packages | |
| run: dotnet restore ModReloader.sln | |
| - name: Build solution | |
| run: dotnet build ModReloader.sln --configuration Release | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ModReloader-Binaries | |
| path: | | |
| ./bin/**/Release/net8.0/*.dll | |
| ./bin/**/Release/net8.0/*.tmod |