1- Edit Delete
2-
3- ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
4- │ ✓ Shell git status && git diff HEAD [current working directory /Users/ancplua/CreatePdf.NET] │
5- │ │
6- │ On branch main │
7- │ Your branch is up to date with 'origin/main'. │
8- │ │
9- │ Changes not staged for commit : │
10- │ (use "git add <file>..." to update what will be committed) │
11- │ (use "git restore <file>..." to discard changes in working directory) │
12- │ modified : .github/workflows/nuget-publish.yml │
13- │ modified : CreatePdf.NET/CreatePdf.NET.csproj │
14- │ │
15- │ Untracked files : │
16- │ (use "git add <file>..." to include in what will be committed) │
17- │ icon.png.bak │
18- │ temp.zip │
19- │ temp3.zip │
20- │ temp3_pkg/ │
21- │ temp4.zip │
22- │ temp4_pkg/ │
23- │ temp_nuspec.xml │
24- │ temp_pkg/ │
25- │ │
26- │ no changes added to commit (use "git add" and/or "git commit -a") │
27- │ diff --git a/.github/workflows/nuget-publish.yml b/.github/workflows/nuget-publish.yml │
28- │ index b8f7e4c..1c1ba0b 100644 │
29- │ --- a/.github/workflows/nuget-publish.yml │
30- │ +++ b/.github/workflows/nuget-publish.yml │
31- │ @@ -14,6 +14,9 @@ on : │
32- │ jobs : │
33- │ publish : │
34- │ runs-on : ubuntu-latest │
35- │ + permissions : │
36- │ + id-token : write │
37- │ + contents : read │
38- │ │▄
39- │ steps : │█
40- │ - name : Checkout code │█
41- │ @@ -44,10 +47,13 @@ jobs : │█
42- │ - name : Pack NuGet package │
43- │ run : dotnet pack CreatePdf.NET/CreatePdf.NET.csproj --configuration Release --no-build --output ./nupkg -p:GeneratePackageOnBuild=false │
44- │ │
45- │ + - name : Authenticate with NuGet │
46- │ + uses : NuGet/login@v1 │
47- │ + if : github.event_name == 'release' || github.event_name == 'workflow_dispatch' │
48- │ + │
49- │ - name : Publish packages to NuGet.org │
50- │ if : github.event_name == 'release' || github.event_name == 'workflow_dispatch' │
51- │ run : | │
52-
53- Press Ctrl-S to enter selection mode to copy text. name : NuGet Publish
1+ name : NuGet Publish
542
553on :
564 push :
575 branches : [ main, master ]
586 paths :
59- - ' **.cs'
60- - ' **.csproj'
7+ - ' **/* .cs'
8+ - ' **/* .csproj'
619 - ' .github/workflows/nuget-publish.yml'
6210 release :
6311 types : [ published ]
7826 uses : actions/setup-dotnet@v4
7927 with :
8028 dotnet-version : |
29+ 8.0.x
30+ 9.0.x
8131 10.0.x
8232
8333 - name : Center/optimize NuGet icon
@@ -87,17 +37,13 @@ jobs:
8737 args : convert icon.png -trim -resize 512x512 -gravity center -background transparent -extent 512x512 icon.png
8838
8939 - name : Restore dependencies
90- run : |
91- dotnet restore SWEN3.Paperless.RabbitMq/SWEN3.Paperless.RabbitMq.csproj
92- dotnet restore SWEN3.Paperless.RabbitMq.Tests/SWEN3.Paperless.RabbitMq.Tests.csproj
40+ run : dotnet restore SWEN3.Paperless.RabbitMq.sln
9341
9442 - name : Build solution
95- run : |
96- dotnet build SWEN3.Paperless.RabbitMq/SWEN3.Paperless.RabbitMq.csproj --configuration Release --no-restore
97- dotnet build SWEN3.Paperless.RabbitMq.Tests/SWEN3.Paperless.RabbitMq.Tests.csproj --configuration Release --no-restore
43+ run : dotnet build SWEN3.Paperless.RabbitMq.sln --configuration Release --no-restore
9844
9945 - name : Run tests
100- run : dotnet test --configuration Release --no-build --verbosity normal
46+ run : dotnet test SWEN3.Paperless.RabbitMq.sln --configuration Release --no-build
10147
10248 - name : Pack NuGet package
10349 run : dotnet pack SWEN3.Paperless.RabbitMq/SWEN3.Paperless.RabbitMq.csproj --configuration Release --no-build --output ./nupkg -p:GeneratePackageOnBuild=false
0 commit comments