File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77jobs :
88 Run-Tests :
99 uses : ./.github/workflows/tiledb-csharp.yml
10- Release :
10+ Pack :
1111 runs-on : ubuntu-latest
1212 needs : Run-Tests
1313 steps :
2323 uses : actions/upload-artifact@v4
2424 with :
2525 name : nuget-release
26- path : pack/
26+ path : ./pack
27+ Release :
28+ runs-on : ubuntu-latest
29+ needs : Pack
30+ environment : release
31+ permissions :
32+ id-token : write
33+ steps :
34+ - uses : actions/checkout@v5
35+ - uses : actions/setup-dotnet@v5
36+ with :
37+ dotnet-version : 8.0.4xx
38+ - name : Obtain NuGet API token
39+ uses : nuget/login@v1
40+ id : nuget-login
41+ with :
42+ user : ${{ vars.NUGET_USER }}
43+ if : vars.NUGET_USER != ''
44+ - name : Download package artifacts
45+ uses : actions/download-artifact@v4
46+ with :
47+ name : nuget-release
48+ path : ./pack
2749 - name : Push packages to NuGet
2850 shell : bash
2951 run : |
3052 cd pack
31- dotnet nuget push "*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.TILEDB_CSHARP_NUGET_KEY }}
53+ dotnet nuget push "*.nupkg" -s ${{ vars.NUGET_FEED }} -k ${{ steps.nuget-login.outputs.NUGET_API_KEY || secrets.NUGET_KEY }}
You can’t perform that action at this time.
0 commit comments