From a3a27bf1c71a152f081c1220ba0125b0ca54d710 Mon Sep 17 00:00:00 2001 From: warpersan Date: Sun, 11 Jan 2026 17:40:01 -0500 Subject: [PATCH 1/8] Added `PackageProjectUrl` --- src/ShipInventoryUpdated/ShipInventoryUpdated.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ShipInventoryUpdated/ShipInventoryUpdated.csproj b/src/ShipInventoryUpdated/ShipInventoryUpdated.csproj index f6ec560..5b9e8c8 100644 --- a/src/ShipInventoryUpdated/ShipInventoryUpdated.csproj +++ b/src/ShipInventoryUpdated/ShipInventoryUpdated.csproj @@ -5,6 +5,7 @@ ShipInventoryUpdated LethalCompanyModding Adds an inventory to the ship, allowing it to store items and retrieve them. + https://github.com/LethalCompanyModding/ShipInventoryCommunity From 43723d821eede69f6340252f2c0ee2ad0aace747 Mon Sep 17 00:00:00 2001 From: warpersan Date: Sun, 11 Jan 2026 17:40:35 -0500 Subject: [PATCH 2/8] Updated `workflows/publish` to Thunderpipe --- .github/workflows/publish.yml | 99 ++++++++++++++++++++++++++--------- 1 file changed, 74 insertions(+), 25 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c845d9b..a0b8815 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,30 +1,79 @@ -name: Publish Mod To TS +name: 'Publish Package' on: - push: - tags: "*" + push: + tags: + - '*' jobs: - publish: - runs-on: ubuntu-latest - steps: - # Use checkout to publish the files in your repo - - name: Checkout - uses: actions/checkout@v4 + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-dotnet@v5 + with: + dotnet-version: | + 8.x + 9.x - - name: Setup Dotnet - uses: actions/setup-dotnet@v5 - with: - dotnet-version: "9.x" - - - name: Restore and Build - run: | - dotnet restore - dotnet tool restore - - - name: Publish to TS - env: - TCLI_AUTH_TOKEN: ${{ secrets.TCLI_AUTH_TOKEN }} - PACKAGE_VERSION: ${{ github.ref_name }} - run: | - dotnet publish -c Release + - name: Restore Dependencies + shell: bash + run: dotnet restore + + - name: Restore Tools + shell: bash + run: dotnet tool restore + + - name: Get Properties + id: get-properties + shell: bash + run: | + get-dotnet-property() { + local CSPROJ="./src/ShipInventoryUpdated/ShipInventoryUpdated.csproj" + + for propertyName in "$@" + do + local VALUE=$(dotnet msbuild "$CSPROJ" --getProperty:"$propertyName") + + if [ -n "$VALUE" ]; then + echo "$VALUE" + return 0 + fi + done + + echo "" + } + + echo "NAME=$(get-dotnet-property 'Product')" >> $GITHUB_OUTPUT + echo "TEAM=$(get-dotnet-property 'Authors')" >> $GITHUB_OUTPUT + echo "DESCRIPTION=$(get-dotnet-property 'Description')" >> $GITHUB_OUTPUT + echo "WEBSITE=$(get-dotnet-property 'PackageProjectUrl' 'RepositoryUrl')" >> $GITHUB_OUTPUT + + - uses: WarperSan/upload-thunderstore-package@v0.1.0-beta + if: failure() + with: + community: 'lethal-company' + team: ${{ steps.get-properties.outputs.TEAM }} + categories: | + mods + tweaks-and-quality-of-life + performance + furniture + name: ${{ steps.get-properties.outputs.NAME }} + description: ${{ steps.get-properties.outputs.DESCRIPTION }} + version: ${{ github.ref_name }} + dependencies: | + BepInEx-BepInExPack-5.4.2100 + Evaisa-LethalLib-1.1.1 + WhiteSpike-Interactive_Terminal_API-1.2.0 + website: ${{ steps.get-properties.outputs.WEBSITE }} + files: | + ./src/ShipInventoryUpdated/bin/Release/ShipInventoryUpdated.dll + ./src/ShipInventoryUpdated/Resources/Localization/*.json + ./src/ShipInventoryUpdated/Resources/Bundles/si-bundle + token: ${{ secrets.TCLI_AUTH_TOKEN }} + package-files: | + ./icon.png + ./README.md + ./LICENSE + ./CHANGELOG.md From 82670129735783aa9b9fe921feb9c5286ee5e0b8 Mon Sep 17 00:00:00 2001 From: warpersan Date: Sun, 11 Jan 2026 17:41:20 -0500 Subject: [PATCH 3/8] Moved icon to `./icon.png` --- artifacts/tspublish/icon.png => icon.png | Bin 1 file changed, 0 insertions(+), 0 deletions(-) rename artifacts/tspublish/icon.png => icon.png (100%) diff --git a/artifacts/tspublish/icon.png b/icon.png similarity index 100% rename from artifacts/tspublish/icon.png rename to icon.png From 17d5f94a489247c39b25712f9e23d02e50b96108 Mon Sep 17 00:00:00 2001 From: warpersan Date: Sun, 11 Jan 2026 17:42:14 -0500 Subject: [PATCH 4/8] Updated .gitignore --- .gitignore | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitignore b/.gitignore index ba5a0ae..4ce0b2f 100644 --- a/.gitignore +++ b/.gitignore @@ -221,5 +221,3 @@ node_modules/ *.sln.iml # End of https://www.toptal.com/developers/gitignore/api/csharp -artifacts/*/dist/**/* -artifacts/**/*.zip From fd20250db2d175ebe5e4f0f34fa175169d470382 Mon Sep 17 00:00:00 2001 From: warpersan Date: Sun, 11 Jan 2026 17:45:23 -0500 Subject: [PATCH 5/8] Removed referrences to `tcli` --- .config/dotnet-tools.json | 7 -- artifacts/tspublish/thunderstore.toml | 48 ------------ .../PublishProfiles/Thunderstore.pubxml | 77 ------------------- 3 files changed, 132 deletions(-) delete mode 100644 artifacts/tspublish/thunderstore.toml delete mode 100644 src/ShipInventoryUpdated/Properties/PublishProfiles/Thunderstore.pubxml diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 9dfa82c..96bd981 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -8,13 +8,6 @@ "netcode-patch" ], "rollForward": false - }, - "tcli": { - "version": "0.2.4", - "commands": [ - "tcli" - ], - "rollForward": false } } } \ No newline at end of file diff --git a/artifacts/tspublish/thunderstore.toml b/artifacts/tspublish/thunderstore.toml deleted file mode 100644 index 57a3d2b..0000000 --- a/artifacts/tspublish/thunderstore.toml +++ /dev/null @@ -1,48 +0,0 @@ -#Don't change this -[config] - schemaVersion="0.0.1" - -[package] - #Edit this in the CSPROJ instead, the workflow will automate copying - #it here for you - description="Adds an inventory to the ship, allowing it to store items and retrieve them." - - #Change this to true if your mod has any NSFW content. Please follow the rules - #on image and text content on your listing or your package may be removed - containsNsfwContent=false - - #This is the link that shows up in the top right of the package page - #while it can be anything, I suggest keeping it as your github - websiteUrl="https://github.com/LethalCompanyModding/ShipInventoryCommunity" - - #This is where you put in dependencies in the format - #DependencyNamespace-ModName = "version.number.here" - [package.dependencies] - BepInEx-BepInExPack ="5.4.2100" - Evaisa-LethalLib ="1.1.1" - WhiteSpike-Interactive_Terminal_API="1.2.0" - -#These settings will import the repo's README.md file and the icon in the -#same folder as this TOML file as your icon. Please replace the icon with -#something prettier! You do not need to modify these settings! -[build] - icon ="./icon.png" - outdir="./build" - readme="./../../README.md" - - [[build.copy]] - source="./dist" - target="./" - -#Don't change this -[general] - repository="https://thunderstore.io" - -#Don't change this -[publish] - communities=["lethal-company"] - repository ="https://thunderstore.io" - - #There is a list of tags in the tutorial - [publish.categories] - lethal-company=["mods", "tweaks-and-quality-of-life", "performance", "furniture"] diff --git a/src/ShipInventoryUpdated/Properties/PublishProfiles/Thunderstore.pubxml b/src/ShipInventoryUpdated/Properties/PublishProfiles/Thunderstore.pubxml deleted file mode 100644 index 8a07530..0000000 --- a/src/ShipInventoryUpdated/Properties/PublishProfiles/Thunderstore.pubxml +++ /dev/null @@ -1,77 +0,0 @@ - - - - True - False - True - False - True - True - bin\**;obj\** - Release - Any CPU - False - FileSystem - $(SolutionDir)\artifacts\tspublish\dist\plugins - $(TargetFramework) - FileSystem - True - True - True - False - FileSystem - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From a2be200ae88890c537ab3374aeb94362cf31ca08 Mon Sep 17 00:00:00 2001 From: warpersan Date: Sun, 11 Jan 2026 17:46:38 -0500 Subject: [PATCH 6/8] Removed unnecessary if --- .github/workflows/publish.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a0b8815..2903477 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -50,7 +50,6 @@ jobs: echo "WEBSITE=$(get-dotnet-property 'PackageProjectUrl' 'RepositoryUrl')" >> $GITHUB_OUTPUT - uses: WarperSan/upload-thunderstore-package@v0.1.0-beta - if: failure() with: community: 'lethal-company' team: ${{ steps.get-properties.outputs.TEAM }} From 34ca46a97cfb8a501888905b46c6078de84a9505 Mon Sep 17 00:00:00 2001 From: WarperSan <78861227+WarperSan@users.noreply.github.com> Date: Tue, 13 Jan 2026 11:23:56 -0500 Subject: [PATCH 7/8] Update upload-thunderstore-package action version v0.1.0-beta is kinda fucked Signed-off-by: WarperSan <78861227+WarperSan@users.noreply.github.com> --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2903477..f567c97 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -49,7 +49,7 @@ jobs: echo "DESCRIPTION=$(get-dotnet-property 'Description')" >> $GITHUB_OUTPUT echo "WEBSITE=$(get-dotnet-property 'PackageProjectUrl' 'RepositoryUrl')" >> $GITHUB_OUTPUT - - uses: WarperSan/upload-thunderstore-package@v0.1.0-beta + - uses: WarperSan/upload-thunderstore-package@v0.1.1-beta with: community: 'lethal-company' team: ${{ steps.get-properties.outputs.TEAM }} From ef1294ccf64d05f869a2a18902d753d39c9e1b59 Mon Sep 17 00:00:00 2001 From: warpersan Date: Wed, 14 Jan 2026 19:43:25 -0500 Subject: [PATCH 8/8] Updated dependency version --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f567c97..2b34221 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -64,7 +64,7 @@ jobs: dependencies: | BepInEx-BepInExPack-5.4.2100 Evaisa-LethalLib-1.1.1 - WhiteSpike-Interactive_Terminal_API-1.2.0 + WhiteSpike-Interactive_Terminal_API-1.3.0 website: ${{ steps.get-properties.outputs.WEBSITE }} files: | ./src/ShipInventoryUpdated/bin/Release/ShipInventoryUpdated.dll