File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,30 +8,42 @@ permissions:
88 id-token : write
99
1010jobs :
11- nuget-auth :
11+ release :
12+ uses : reactiveui/actions-common/.github/workflows/workflow-common-release.yml@main
13+ with :
14+ solutionFile : ReactiveUI.Binding.SourceGenerators.slnx
15+ installWorkloads : true
16+ secrets :
17+ ES_USERNAME : ${{ secrets.ES_USERNAME }}
18+ ES_PASSWORD : ${{ secrets.ES_PASSWORD }}
19+ CREDENTIAL_ID : ${{ secrets.CREDENTIAL_ID }}
20+ ES_TOTP_SECRET : ${{ secrets.ES_TOTP_SECRET }}
21+
22+ publish-nuget :
23+ needs : release
1224 runs-on : ubuntu-latest
1325 environment :
1426 name : release
1527 permissions :
1628 id-token : write
17- outputs :
18- api-key : ${{ steps.login.outputs.NUGET_API_KEY }}
1929 steps :
30+ - name : Download signed packages
31+ uses : actions/download-artifact@v6
32+ with :
33+ name : signed-nuget
34+
35+ - name : Setup .NET
36+ uses : actions/setup-dotnet@v5
37+
2038 - name : NuGet login (OIDC trusted publishing)
21- id : login
39+ id : nuget- login
2240 uses : NuGet/login@v1
2341 with :
2442 user : ${{ secrets.NUGET_USER }}
2543
26- release :
27- needs : nuget-auth
28- uses : reactiveui/actions-common/.github/workflows/workflow-common-release.yml@main
29- with :
30- solutionFile : ReactiveUI.Binding.SourceGenerators.slnx
31- installWorkloads : true
32- secrets :
33- ES_USERNAME : ${{ secrets.ES_USERNAME }}
34- ES_PASSWORD : ${{ secrets.ES_PASSWORD }}
35- CREDENTIAL_ID : ${{ secrets.CREDENTIAL_ID }}
36- ES_TOTP_SECRET : ${{ secrets.ES_TOTP_SECRET }}
37- NUGET_API_KEY : ${{ needs.nuget-auth.outputs.api-key }}
44+ - name : Push to NuGet
45+ shell : bash
46+ run : |
47+ for pkg in *.nupkg; do
48+ dotnet nuget push "$pkg" --source https://api.nuget.org/v3/index.json --api-key "${{ steps.nuget-login.outputs.NUGET_API_KEY }}"
49+ done
You can’t perform that action at this time.
0 commit comments