File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,19 +11,25 @@ jobs:
1111 if : github.repository == 'rameel/ramstack.structures'
1212 runs-on : ubuntu-latest
1313 steps :
14- - name : Checkout
15- uses : actions/checkout@v4
16-
17- - name : Setup .NET
14+ - name : Install .NET
1815 uses : actions/setup-dotnet@v3
1916 with :
2017 dotnet-version : 9.0.x
2118
19+ - name : Checkout
20+ uses : actions/checkout@v4
21+
2222 - name : Build
2323 run : dotnet build -c Release
2424
25- - name : Pack
25+ - name : Create NuGet Packages
2626 run : dotnet pack -c Release -o ./nuget --no-build
2727
28- - name : Publish
28+ - name : Publish NuGet Packages
2929 run : dotnet nuget push ./nuget/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate -s https://api.nuget.org/v3/index.json
30+
31+ - name : Create GitHub Release
32+ uses : softprops/action-gh-release@v2
33+ with :
34+ draft : true
35+ files : nuget/*
Original file line number Diff line number Diff line change 1- name : Test
1+ name : Build & Test
22
33on :
44 pull_request :
55 branches : [main]
66
77jobs :
88 build-and-test :
9-
10- name : build-and-test-${{ matrix.os }}
11- runs-on : ${{ matrix.os }}
12- strategy :
13- matrix :
14- os : [ubuntu-latest]
9+ name : " Test project"
10+ runs-on : ubuntu-latest
1511
1612 steps :
1713 - name : Checkout
@@ -20,16 +16,14 @@ jobs:
2016 - name : Setup .NET
2117 uses : actions/setup-dotnet@v3
2218 with :
23- dotnet-version : 9.0.x
24-
25- - name : Build (Debug)
26- run : dotnet build -c Debug
27-
28- - name : Build (Release)
29- run : dotnet build -c Release
19+ dotnet-version : |
20+ 6.x
21+ 7.x
22+ 8.x
23+ 9.x
3024
3125 - name : Test (Debug)
32- run : dotnet test -c Debug --no-build
26+ run : dotnet test -c Debug
3327
3428 - name : Test (Release)
35- run : dotnet test -c Release --no-build
29+ run : dotnet test -c Release
You can’t perform that action at this time.
0 commit comments