File tree 1 file changed +40
-0
lines changed 1 file changed +40
-0
lines changed 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 : .NET
5
+
6
+ on :
7
+ push :
8
+ branches : [ "master" ]
9
+ pull_request :
10
+ branches : [ "master" ]
11
+
12
+ jobs :
13
+ build :
14
+
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - uses : actions/checkout@v3
19
+ - name : Setup .NET
20
+ uses : actions/setup-dotnet@v3
21
+ with :
22
+ dotnet-version : 8.0.x
23
+ - name : Restore dependencies
24
+ run : dotnet restore
25
+ - name : Build
26
+ run : dotnet build --no-restore
27
+ - name : Build and Publish NuGet Packages
28
+ run : |
29
+ dotnet build -c Release
30
+ dotnet pack -c Release
31
+ dotnet nuget push ./src/core/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
32
+ dotnet nuget push ./src/features/Controllers/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
33
+ dotnet nuget push ./src/features/Database/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
34
+ dotnet nuget push ./src/features/Database.Npgsql/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
35
+ dotnet nuget push ./src/features/HangFire/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
36
+ dotnet nuget push ./src/features/Logging/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
37
+ dotnet nuget push ./src/features/Stl.Fusion/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
38
+ dotnet nuget push ./src/features/WebSocket/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
39
+ env :
40
+ DOTNET_CLI_TELEMETRY_OPTOUT : 1
You can’t perform that action at this time.
0 commit comments