|
11 | 11 | DOTNET_NOLOGO: true |
12 | 12 | DOTNET_CLI_TELEMETRY_OPTOUT: true |
13 | 13 | environment: Production |
| 14 | + permissions: |
| 15 | + id-token: write |
14 | 16 | steps: |
| 17 | + - name: NuGet login (OIDC → temp API key) |
| 18 | + uses: NuGet/login@v1 |
| 19 | + id: login |
| 20 | + with: |
| 21 | + user: ${{ secrets.NUGET_USER }} |
15 | 22 | - name: Checkout |
16 | 23 | uses: actions/checkout@v6 |
17 | 24 | with: |
@@ -56,14 +63,14 @@ jobs: |
56 | 63 | - name: Pack WebAuthn.Net.Storage.SqlServer |
57 | 64 | run: dotnet pack src/WebAuthn.Net.Storage.SqlServer/WebAuthn.Net.Storage.SqlServer.csproj --output out --configuration Release |
58 | 65 | - name: Publish package WebAuthn.Net |
59 | | - run: dotnet nuget push out/WebAuthn.Net.${{ env.RELEASE_VERSION }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_PUBLISH_KEY }} |
| 66 | + run: dotnet nuget push out/WebAuthn.Net.${{ env.RELEASE_VERSION }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{steps.login.outputs.NUGET_API_KEY}} |
60 | 67 | - name: Publish package WebAuthn.Net.OpenTelemetry |
61 | | - run: dotnet nuget push out/WebAuthn.Net.OpenTelemetry.${{ env.RELEASE_VERSION }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_PUBLISH_KEY }} |
| 68 | + run: dotnet nuget push out/WebAuthn.Net.OpenTelemetry.${{ env.RELEASE_VERSION }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{steps.login.outputs.NUGET_API_KEY}} |
62 | 69 | - name: Publish package WebAuthn.Net.Storage.InMemory |
63 | | - run: dotnet nuget push out/WebAuthn.Net.Storage.InMemory.${{ env.RELEASE_VERSION }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_PUBLISH_KEY }} |
| 70 | + run: dotnet nuget push out/WebAuthn.Net.Storage.InMemory.${{ env.RELEASE_VERSION }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{steps.login.outputs.NUGET_API_KEY}} |
64 | 71 | - name: Publish package WebAuthn.Net.Storage.MySql |
65 | | - run: dotnet nuget push out/WebAuthn.Net.Storage.MySql.${{ env.RELEASE_VERSION }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_PUBLISH_KEY }} |
| 72 | + run: dotnet nuget push out/WebAuthn.Net.Storage.MySql.${{ env.RELEASE_VERSION }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{steps.login.outputs.NUGET_API_KEY}} |
66 | 73 | - name: Publish package WebAuthn.Net.Storage.PostgreSql |
67 | | - run: dotnet nuget push out/WebAuthn.Net.Storage.PostgreSql.${{ env.RELEASE_VERSION }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_PUBLISH_KEY }} |
| 74 | + run: dotnet nuget push out/WebAuthn.Net.Storage.PostgreSql.${{ env.RELEASE_VERSION }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{steps.login.outputs.NUGET_API_KEY}} |
68 | 75 | - name: Publish package WebAuthn.Net.Storage.SqlServer |
69 | | - run: dotnet nuget push out/WebAuthn.Net.Storage.SqlServer.${{ env.RELEASE_VERSION }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_PUBLISH_KEY }} |
| 76 | + run: dotnet nuget push out/WebAuthn.Net.Storage.SqlServer.${{ env.RELEASE_VERSION }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{steps.login.outputs.NUGET_API_KEY}} |
0 commit comments