Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/sdk_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ jobs:
echo "matrix=$files" >> $GITHUB_OUTPUT

publish:
permissions:
id-token: write # Enable GitHub OIDC token issuance for this job
name: Publish Packages
needs: ['discover']
if: |
Expand All @@ -159,9 +161,14 @@ jobs:
with:
name: packages
path: packages
- name: NuGet logic (OIDC -> temp API key)
uses: NuGet/login@v1
id: login
with:
user: ${{ secrets.NUGETORG_DAPR_USER }}
- name: Publish ${{ matrix.package }} to NuGet
run: |
dotnet nuget push "${{ matrix.package }}" --skip-duplicate --api-key ${{ secrets.NUGETORG_DAPR_API_KEY }} --source https://api.nuget.org/v3/index.json
dotnet nuget push "${{ matrix.package }}" --skip-duplicate --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

# - name: List packages (for sanity check)
# run: ls -R
Expand Down