File tree 1 file changed +43
-0
lines changed
1 file changed +43
-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 : smart-problems-nuget
5
+
6
+ on :
7
+ # Allows you to run this workflow manually from the Actions tab
8
+ workflow_dispatch :
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+
14
+ # Steps represent a sequence of tasks that will be executed as part of the job
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+
18
+ - name : Setup .NET
19
+ uses : actions/setup-dotnet@v3
20
+ with :
21
+ dotnet-version : ' 8.0.x'
22
+ include-prerelease : true
23
+
24
+ - name : Build and pack SmartProblems
25
+ run : sudo dotnet build ./src/RoyalCode.SmartProblems/RoyalCode.SmartProblems.csproj -c Release
26
+
27
+ - name : Build and pack Conversions
28
+ run : sudo dotnet build ./src/RoyalCode.SmartProblems.Conversions/RoyalCode.SmartProblems.Conversions.csproj -c Release
29
+
30
+ - name : Build and pack ProblemDetails
31
+ run : sudo dotnet build ./src/RoyalCode.SmartProblems.ProblemDetails/RoyalCode.SmartProblems.ProblemDetails.csproj -c Release
32
+
33
+ - name : Build and pack ApiResults
34
+ run : sudo dotnet build ./src/RoyalCode.SmartProblems.ApiResults/RoyalCode.SmartProblems.ApiResults.csproj -c Release
35
+
36
+ - name : Build and pack Http
37
+ run : sudo dotnet build ./src/RoyalCode.SmartProblems.Http/RoyalCode.SmartProblems.Http.csproj -c Release
38
+
39
+ - name : Build and pack FluentValidation
40
+ run : sudo dotnet build ./src/RoyalCode.SmartProblems.FluentValidation/RoyalCode.SmartProblems.FluentValidation.csproj -c Release
41
+
42
+ - name : Publish
43
+ run : sudo dotnet nuget push ./**/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments