File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Publish NuGet Package
2-
32on :
43 push :
54 tags :
65 - ' v*' # Trigger on version tags like v1.0.0
7-
86jobs :
97 build :
108 runs-on : windows-latest
11-
129 steps :
1310 - name : Checkout code
14- uses : actions/checkout@v3
15-
11+ uses : actions/checkout@v4
1612 - name : Setup .NET SDK
17- uses : actions/setup-dotnet@v3
13+ uses : actions/setup-dotnet@v4
1814 with :
1915 dotnet-version : ' 6.0.x'
20-
2116 - name : Restore dependencies
2217 run : dotnet restore CADability/CADability.csproj
23-
2418 - name : Build
2519 run : dotnet build CADability/CADability.csproj -c Release --no-restore
26-
2720 - name : List build output
2821 run : dir CADability\bin\Release\netstandard2.0
29-
3022 - name : Pack
3123 run : dotnet pack CADability/CADability.csproj -c Release --no-build -o ./nupkgs
32-
3324 - name : List nupkg
3425 run : dir .\nupkgs
35-
3626 - name : Push NuGet package
3727 run : |
3828 $version = "${{ github.ref_name }}" -replace '^v', ''
You can’t perform that action at this time.
0 commit comments