File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed
Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 66jobs :
77 publish :
88
9+ permissions :
10+ id-token : write # enable GitHub OIDC token issuance for this job
11+
912 runs-on : ubuntu-latest
1013
1114 steps :
@@ -40,25 +43,31 @@ jobs:
4043
4144 # ###############################
4245 # NUGET
46+ - name : Trusted Publishing (id-token permission required)
47+ uses : NuGet/login@v1
48+ id : login # --> ${{ steps.login.outputs.NUGET_API_KEY }}
49+ with :
50+ user : ${{ secrets.NUGET_LOGIN }}
51+
4352 - name : NuGet Publish
4453 run : |
4554 cd ./directives
4655 dotnet nuget push "bin/Release/*.nupkg" \
47- -k ${{ secrets .NUGET_API_KEY }} \
56+ -k ${{ steps.login.outputs .NUGET_API_KEY }} \
4857 -s https://api.nuget.org/v3/index.json \
4958 --timeout 60
5059 cd ..
5160
5261 cd ./src
5362 dotnet nuget push "bin/Release/*.nupkg" \
54- -k ${{ secrets .NUGET_API_KEY }} \
63+ -k ${{ steps.login.outputs .NUGET_API_KEY }} \
5564 -s https://api.nuget.org/v3/index.json \
5665 --timeout 60
5766 cd ..
5867
5968 cd ./cli
6069 dotnet nuget push "bin/Release/*.nupkg" \
61- -k ${{ secrets .NUGET_API_KEY }} \
70+ -k ${{ steps.login.outputs .NUGET_API_KEY }} \
6271 -s https://api.nuget.org/v3/index.json \
6372 --timeout 60
6473 cd ..
Original file line number Diff line number Diff line change 55 </PropertyGroup >
66
77 <PropertyGroup Label =" NuGetPublishSettings" >
8- <NuGetPublishVersion >1.0.1 </NuGetPublishVersion >
8+ <NuGetPublishVersion >1.0.2 </NuGetPublishVersion >
99 <NuGetPublishVersionSuffix ></NuGetPublishVersionSuffix >
1010 <!-- relative path from .csproj files, without trailing slash -->
1111 <NuGetPublishProjectRootRelPath >..</NuGetPublishProjectRootRelPath >
Original file line number Diff line number Diff line change 1919 </None >
2020 </ItemGroup >
2121 <ItemGroup >
22- <PackageReference Include =" SatorImaging.Jsonable" Version =" 1.2.1 " >
22+ <PackageReference Include =" SatorImaging.Jsonable" Version =" 1.2.2 " >
2323 <PrivateAssets >all</PrivateAssets >
2424 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
2525 </PackageReference >
You can’t perform that action at this time.
0 commit comments