File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,32 +38,15 @@ jobs:
3838 if : matrix.dotnet-version == '9.x'
3939 run : dotnet pack --configuration Release --no-build --output ./nupkg
4040
41- - name : Upload NuGet package
42- if : matrix.dotnet-version == '9.x'
43- uses : actions/upload-artifact@v4
41+ - name : Nuget Login (OIDC + temp API Key)
42+ uses : Nuget/login@v1
43+ id : login
4444 with :
45- name : nupkg
46- path : ./nupkg/*.nupkg
47-
48- publish :
49- needs : build-and-test
50- runs-on : ubuntu-22.04
51- steps :
52- - name : Download NuGet package
53- uses : actions/download-artifact@v4
54- with :
55- name : nupkg
56- path : ./nupkg
57-
58- - name : Nuget Login (OIDC + temp API Key)
59- uses : Nuget/login@v1
60- id : login
61- with :
62- user : ${{secrets.NUGET_USER}}
45+ user : ${{secrets.NUGET_USER}}
6346
64- - name : Nuget push
65- run : dotnet nuget push nupkg/*.nupkg --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
47+ - name : Nuget push
48+ run : dotnet nuget push nupkg/*.nupkg --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
6649
67- - name : Done
68- run : echo "Package published successfully!"
50+ - name : Done
51+ run : echo "Package published successfully!"
6952
Original file line number Diff line number Diff line change 44 <TargetFrameworks >net8.0;net9.0</TargetFrameworks >
55
66 <!-- NuGet package metadata -->
7- <Version >3.3 .0</Version >
7+ <Version >3.2 .0</Version >
88 <PackageId >OpenCode</PackageId >
99 <Authors >Navneet Hegde</Authors >
1010 <Company >Navneet Hegde</Company >
You can’t perform that action at this time.
0 commit comments