Skip to content
Closed
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
10 changes: 9 additions & 1 deletion .github/workflows/build-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ jobs:
needs: pipeline
permissions:
contents: read
id-token: write

strategy:
fail-fast: true
Expand Down Expand Up @@ -193,7 +194,14 @@ jobs:
SUFFIX: ${{ steps.initialize.outputs.version_suffix }}
shell: bash

- name: Login to NuGet
id: nuget-login
if: ${{ github.ref == 'refs/heads/main' }}
uses: NuGet/login@8d196754b4036150537f80ac539e15c2f1028841 # v1.2.0
with:
user: ${{ secrets.NUGET_USER }}

- name: Publish
id: publish
if: ${{ github.ref == 'refs/heads/main' }}
run: dotnet nuget push template/**/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
run: dotnet nuget push template/**/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ steps.nuget-login.outputs.NUGET_API_KEY }}
Loading