diff --git a/.github/workflows/ci-otapi3-nuget.yml b/.github/workflows/ci-otapi3-nuget.yml
new file mode 100644
index 00000000..3cdcd116
--- /dev/null
+++ b/.github/workflows/ci-otapi3-nuget.yml
@@ -0,0 +1,30 @@
+name: Deploy NuGet(OTAPI3)
+
+on:
+ push:
+ branches: [ nuget-release ]
+ pull_request:
+ branches: [ nuget-release ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ environment: release
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v2
+ with:
+ dotnet-version: 6.0.400
+ - name: Restore dependencies
+ run: dotnet restore
+ - name: Build
+ run: dotnet build TShock.sln --configuration Release --no-restore
+ - name: Test
+ run: dotnet test --no-build --verbosity normal --configuration Release
+
+ # Publish
+ - name: Push TShockAPI
+ run: dotnet nuget push TShockAPI/bin/Release/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
diff --git a/TShock.sln b/TShock.sln
index 4e53bcfa..7e9acded 100644
--- a/TShock.sln
+++ b/TShock.sln
@@ -4,6 +4,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00
VisualStudioVersion = 17.0.31825.309
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{755F5B05-0924-47E9-9563-26EB20FE3F67}"
+ ProjectSection(SolutionItems) = preProject
+ .editorconfig = .editorconfig
+ .gitignore = .gitignore
+ appveyor.yml = appveyor.yml
+ CHANGELOG.md = CHANGELOG.md
+ .github\workflows\ci-otapi3-nuget.yml = .github\workflows\ci-otapi3-nuget.yml
+ .github\workflows\ci-otapi3.yml = .github\workflows\ci-otapi3.yml
+ COPYING = COPYING
+ .github\workflows\danger.yml = .github\workflows\danger.yml
+ README.md = README.md
+ README_cn.md = README_cn.md
+ SECURITY.md = SECURITY.md
+ EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TShockAPI", "TShockAPI\TShockAPI.csproj", "{49606449-072B-4CF5-8088-AA49DA586694}"
EndProject
diff --git a/TShockAPI/TShockAPI.csproj b/TShockAPI/TShockAPI.csproj
index 092473f3..4a4dab3c 100644
--- a/TShockAPI/TShockAPI.csproj
+++ b/TShockAPI/TShockAPI.csproj
@@ -6,8 +6,6 @@
net6.0
true
True
- True
- GPL-3.0-or-later
- 5.0.0-beta
+ 5.0.0-beta
TShock for Terraria
Pryaxis & TShock Contributors
TShockAPI
- Copyright © Pryaxis & TShock Contributors 2011-2021
+ Copyright © Pryaxis & TShock Contributors 2011-2022
+
+ True
+ GPL-3.0-or-later
+ Pryaxis & TShock Contributors
+ TShock is a toolbox for Terraria servers and communities.
@@ -43,4 +46,13 @@
+
+
+ HttpServer.dll
+ Always
+ true
+ true
+
+
+