File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 13
13
- uses : actions/checkout@v5
14
14
15
15
- name : Setup .NET 9
16
- uses : actions/setup-dotnet@v4
16
+ uses : actions/setup-dotnet@v5
17
17
with :
18
18
dotnet-version : 9.0.*
19
19
37
37
- name : Pack .NET project
38
38
run : dotnet pack Intility.Logging.sln -o Intility.Logging/output --property:Version=${{ steps.meta.outputs.tags }}
39
39
40
+ # Get a short-lived NuGet API key
41
+ - name : NuGet login
42
+ uses : NuGet/login@d22cc5f58ff5b88bf9bd452535b4335137e24544 # v1.1.0
43
+ id : login
44
+ with :
45
+ user : ${{ secrets.NUGET_USER }}
46
+
40
47
- name : Publish to NuGet
41
- run : dotnet nuget push Intility.Logging/output/*.nupkg --skip-duplicate --api-key ${{ secrets .NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
48
+ run : dotnet nuget push Intility.Logging/output/*.nupkg --skip-duplicate --api-key ${{ steps.login.outputs .NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments