File tree Expand file tree Collapse file tree 2 files changed +33
-2
lines changed
Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 2323 - name : Restore dependencies
2424 run : dotnet restore
2525 - name : Build
26- run : dotnet build --no-restore
26+ run : dotnet build ./src/SteamWebAPI2.sln --no-restore
2727 - name : Test
28- run : dotnet test --no-build --verbosity normal
28+ run : dotnet test ./src --no-build --verbosity normal
Original file line number Diff line number Diff line change 1+ # This workflow will build a .NET project
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+ name : Build, Test, and Publish .NET
5+
6+ on :
7+ push :
8+ branches : [ "master" ]
9+ tags : [ "*" ]
10+
11+ jobs :
12+ build :
13+
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+ - name : Setup .NET
19+ uses : actions/setup-dotnet@v4
20+ with :
21+ dotnet-version : 8.0.x
22+ - name : Restore dependencies
23+ run : dotnet restore
24+ - name : Build
25+ run : dotnet build ./src/SteamWebAPI2.sln -c Release --no-restore
26+ - name : Test
27+ run : dotnet test ./src -c Release --no-build --verbosity normal
28+ - name : Pack
29+ run : dotnet pack ./src/SteamWebAPI2/SteamWebAPI2.csproj -c Release --no-build --output .
30+ - name : Publish
31+ run : dotnet nuget push "*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json -n --skip-duplicate
You can’t perform that action at this time.
0 commit comments