Set version to 5.2.1 #15
This file contains 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: Deploy NuGet(OTAPI3) | |
on: | |
push: | |
branches: [ nuget-release ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: release | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.400 | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build TSAPI.sln --configuration Release --no-restore | |
- name: Test | |
run: dotnet test --no-build --verbosity normal --configuration Release --filter "FullyQualifiedName!~TerrariaServerAPI.Tests.Benchmarks" | |
# Publish | |
- name: Push TSAPI | |
run: dotnet nuget push TerrariaServerAPI/bin/Release/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json |